CVE-2016-4658
Nokogiri does not forbid namespace nodes in XPointer ranges
Reported by apple · Published September 25, 2016
nokogiri is fixed in 1.7.1 (RubyGems)
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.
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.7.1 |
| libxml2-python | Amazon Linux | 2.9.1-6.amzn2.3.3 |
| watchos | apple | 3.0 |
| libxml2 | xmlsoft | 2.9.5 |
| tvos | apple | 10.0 |
| iphone_os | apple | 10.0 |
| libxml2 | Ubuntu:16.04:LTS | 2.9.3+dfsg1-1ubuntu0.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| RubyGems | nokogiri | 0 |
| amazon:2 | libxml2-python | 0 |
| n/a | n/a | * |
| amazon:2 | libxml2-static | 0 |
| arch | libxml2 | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libxml2 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| NuGet | libxml2 | 0 |
| amazon:2 | libxml2-devel | 0 |
Timeline
- Sep 20, 2016 CVE Published
- Mar 13, 2019 CVE Updated
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Apr 3, 2025 PoC Published (2 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (7 in total, the first dated here)
- Mar 5, 2026 Security Advisory (12 in total, the first dated here)
- Oct 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-4658
vulnetix vdb fixes CVE-2016-4658
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-2016-4658/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- 1036858 vdb-entryx_refsource_SECTRACK
- APPLE-SA-2016-09-20 vendor-advisoryx_refsource_APPLE
- APPLE-SA-2016-09-20-3 vendor-advisoryx_refsource_APPLE
- APPLE-SA-2016-09-20-5 vendor-advisoryx_refsource_APPLE
- APPLE-SA-2016-09-20-6 vendor-advisoryx_refsource_APPLE
- 93054 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- GLSA-201701-37 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- 1038623 vdb-entryx_refsource_SECTRACK
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-4658 advisory
- http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-4448.html url
- http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-4658.html url
- http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-5131.html url
- https://github.com/sparklemotion/nokogiri/issues/1615 url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url