CVE-2017-18258
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nokogiri | RubyGems | 1.8.2 |
| libxml2 | NuGet | 2.9.6 |
| libxml2-python | Amazon Linux | 2.9.1-6.amzn2.4.1 |
| libxml2-devel | Amazon Linux | 2.9.1-6.amzn2.4.1 |
| libxml2-static | Amazon Linux | 2.9.1-6.amzn2.4.1 |
| libxml2 | Amazon Linux | 2.9.1-6.amzn2.4.1 |
| libxml2 | Arch Linux | 2.9.6+3+g5af594d8-1 |
| libxml2 | xmlsoft | 2.9.6 |
| libxml2 | Ubuntu:16.04:LTS | 2.9.3+dfsg1-1ubuntu0.6 |
| libxml2 | Ubuntu:18.04:LTS | 2.9.4+dfsg1-6.1ubuntu1.2 |
| SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | Siemens | 3.1.5 |
| libxml2 | Ubuntu:14.04:LTS | 2.9.1+dfsg1-3ubuntu4.13 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | libxml2-python | 0 |
| amazon:2 | libxml2-devel | 0 |
| amazon:2 | libxml2-static | 0 |
| RubyGems | nokogiri | 0 |
| amazon:2 | libxml2 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| arch | libxml2 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| xmlsoft | libxml2 | |
| NuGet | libxml2 | 0 |
| n/a | n/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
References
- [debian-lts-announce] 20180927 [SECURITY] [DLA 1524-1] libxml2 security update mailing-listx_refsource_MLIST
- USN-3739-1 vendor-advisoryx_refsource_UBUNTU
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- [debian-lts-announce] 20200909 [SECURITY] [DLA 2369-1] libxml2 security update mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2017-18258 advisory
- https://github.com/advisories/GHSA-882p-jqgm-f45g advisory
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url