KeygraphLabs · CVE MCP

CVE-2017-18258 · mitre

CVE-2017-18258

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.

Published 2018-04-08, last changed 2026-10-14. Weakness: CWE-770.

CVSS
6.5
medium, from NVD
EPSS
2.73%
percentile 86.6%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: nokogiri 1.8.2 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in gnome/libxml2 by 4b4d3d8516. The fix changed source code, but no function could be located in it. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2018-04-08Published
2018-04-13Package advisory GHSA-882p-jqgm-f45g
2026-10-14Record last changed
2026-11-30EPSS when our history starts: 2.73%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-882p-jqgm-f45gnokogiri (RubyGems)1.8.2

Also known as: GHSA-882p-jqgm-f45g

Related

CVEPublishedCVSSSummary
CVE-2026-1260642026-11-102Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Node#[]=` or `#lang=`
CVE-2026-1260632026-11-102.3Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer
CVE-2026-1260622026-11-103.7Nokogiri : Possible SSRF on JRuby when resolving external DTDs or entities with `NONET` set
CVE-2026-797722026-08-256.9Nokogiri before 1.19.1 Unchecked Return Value canonicalize
CVE-2026-797712026-08-256.9Nokogiri before 1.19.3 Memory Leak via XSLT Transform
CVE-2026-797702026-08-258.7Nokogiri before 1.19.3 ReDoS via CSS selector tokenizer
CVE-2026-574382026-06-256.6Nokogiri: Possible Use-After-Free in XInclude Processing
CVE-2026-574372026-06-255.3Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2017-18258, or call /api/v1/vulnerabilities/CVE-2017-18258. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org