CVE-2017-18258Xmlsoft Libxml2
Medium 6.5 No auth needed
Follow: this CVE · Xmlsoft · Xmlsoft Libxml2 We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.0
- 6.5
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Apr 8, 2018
- Updated
- Oct 14, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Libxml2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | nokogiri |
< 1.8.2 |
1.8.2 |
gem "nokogiri", ">= 1.8.2" |
Per OSV / GitHub Advisories (GHSA-882p-jqgm-f45g). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| xmlsoft | libxml2 | < 2.9.6 |
Official sources
References
Links published by the sources. Open them with care.