KeygraphLabs · CVE MCP

CVE-2016-4658 · apple

CVE-2016-4658

xpointer.c in libxml2 before 2.9.5 (as used in Apple iOS before 10, OS X before 10.12, tvOS before 10, and watchOS before 3, and other products) does not forbid namespace nodes in XPointer ranges, which allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free and memory corruption) via a crafted XML document.

Published 2016-09-25, last changed 2026-10-14. Weakness: CWE-119.

CVSS
9.8
critical, from NVD
EPSS
8.56%
percentile 95.2%, 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.7.1 (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 2960178fe8. 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

2016-09-25Published
2018-08-21Package advisory GHSA-fr52-4hqw-p27f
2026-10-14Record last changed
2026-11-30EPSS when our history starts: 8.56%
2026-12-01Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-fr52-4hqw-p27fnokogiri (RubyGems)1.7.1

Also known as: GHSA-fr52-4hqw-p27f

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-2016-4658, or call /api/v1/vulnerabilities/CVE-2016-4658. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org