VDB

CVE-2017-18258

CVE-2017-18258 PUBLISHED CVSS 6.5 MEDIUM

Uncontrolled resource consumption in nokogiri

Reported by mitre · Published April 8, 2018

nokogiri is fixed in 1.8.2 (RubyGems)

The xz_head function in xzlib.c in libxml2 before 2.9.6 allows remote attackers to cause a denial of service (memory consumption) via a crafted LZMA file, because the decoder functionality does not restrict memory usage to what is required for a legitimate file.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nokogiriRubyGems1.8.2
libxml2NuGet2.9.6
libxml2-pythonAmazon Linux2.9.1-6.amzn2.4.1
libxml2-develAmazon Linux2.9.1-6.amzn2.4.1
libxml2-staticAmazon Linux2.9.1-6.amzn2.4.1
libxml2Amazon Linux2.9.1-6.amzn2.4.1
libxml2Arch Linux2.9.6+3+g5af594d8-1
libxml2xmlsoft2.9.6
libxml2Ubuntu:16.04:LTS2.9.3+dfsg1-1ubuntu0.6
libxml2Ubuntu:18.04:LTS2.9.4+dfsg1-6.1ubuntu1.2
SIMATIC S7-1500 CPU 1518F-4 PN/DP MFPSiemens3.1.5
libxml2Ubuntu:14.04:LTS2.9.1+dfsg1-3ubuntu4.13

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.0
6.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2libxml2-python0
amazon:2libxml2-devel0
amazon:2libxml2-static0
RubyGemsnokogiri0
amazon:2libxml20
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
archlibxml20
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
xmlsoftlibxml2
NuGetlibxml20
n/an/a*

Timeline

  • Apr 8, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Mar 6, 2026 Distribution Patch
  • Mar 6, 2026 Security Advisory (2 in total, the first dated here)
  • Oct 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-18258
vulnetix vdb fixes CVE-2017-18258

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-18258/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›