CVE-2016-4658
libxml2: Use after free via namespace node in XPointer ranges
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Ruby Advisory DB. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium), Ubuntu (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | nokogiri | 1.7.1 |
| rubygems::Ruby Advisory Database | nokogiri | >= 1.7.1 |
| amazon linux 2 | libxml2, libxml2-debuginfo, libxml2-devel and 2 more | 2.9.1-6.amzn2.3.3 |
| debian 11 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 12 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 13 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 14 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 7 | libxml2 | 2.8.0+dfsg1-7+wheezy7 |
| debian 8 | libxml2 | 2.9.1+dfsg1-5+deb8u4 |
| echo | libxml2, libxml2-2.9.1 | 2.9.4+dfsg1-2.1 and 1 more |
| Oracle Linux 7 | libxml2, libxml2-devel, libxml2-python and 1 more | 2.9.1-6.0.3.el7_9.6 |
| Red Hat | libxml2, libxml2-devel, libxml2-python and 1 more | no fix listed |
Show all 40 entries from 25 sources
| Source | Package | Fixed in |
|---|---|---|
| rubygems::GitHub Security Advisory RubyGems | nokogiri | 1.7.1 |
| rubygems::Ruby Advisory Database | nokogiri | >= 1.7.1 |
| amazon linux 2 | libxml2 | 2.9.1-6.amzn2.3.3 |
| amazon linux 2 | libxml2-debuginfo | 2.9.1-6.amzn2.3.3 |
| amazon linux 2 | libxml2-devel | 2.9.1-6.amzn2.3.3 |
| amazon linux 2 | libxml2-python | 2.9.1-6.amzn2.3.3 |
| amazon linux 2 | libxml2-static | 2.9.1-6.amzn2.3.3 |
| debian 11 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 12 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 13 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 14 | libxml2 | 2.9.4+dfsg1-2.1 |
| debian 7 | libxml2 | 2.8.0+dfsg1-7+wheezy7 |
| debian 8 | libxml2 | 2.9.1+dfsg1-5+deb8u4 |
| echo | libxml2 | 2.9.4+dfsg1-2.1 |
| echo | libxml2-2.9.1 | 2.9.1+e1 |
| Oracle Linux 7 | libxml2 | 2.9.1-6.0.3.el7_9.6 |
| Oracle Linux 7 | libxml2-devel | 2.9.1-6.0.3.el7_9.6 |
| Oracle Linux 7 | libxml2-python | 2.9.1-6.0.3.el7_9.6 |
| Oracle Linux 7 | libxml2-static | 2.9.1-6.0.3.el7_9.6 |
| Red Hat | libxml2 | no fix listed |
| Red Hat | libxml2-devel | no fix listed |
| Red Hat | libxml2-python | no fix listed |
| Red Hat | libxml2-static | no fix listed |
| root.io debian 11 | rootio-libxml2 | 2.9.4+dfsg1-2.1 |
| root.io debian 12 | rootio-libxml2 | 2.9.4+dfsg1-2.1 |
| root.io debian 13 | rootio-libxml2 | 2.9.4+dfsg1-2.1 |
| seal Red Hat 6 | libxml2 | 2.7.6-21.el6_8.1+sp999 |
| seal Red Hat 6 | seal-libxml2 | 2.7.6-21.el6_8.1+sp999 |
| seal Red Hat 7 | libxml2 | 2.9.1-6.el7_9.6+sp999 |
| seal Red Hat 7 | seal-libxml2 | 2.9.1-6.el7_9.6+sp999 |
| seal Red Hat 8 | libxml2 | 2.9.7-18.el8_10.1+sp999 |
| seal Red Hat 8 | seal-libxml2 | 2.9.7-18.el8_10.1+sp999 |
| seal Red Hat 9 | libxml2 | 2.9.13-6.el9_4+sp999 |
| seal Red Hat 9 | seal-libxml2 | 2.9.13-6.el9_4+sp999 |
| ubuntu 12.04 | libxml2 | 2.7.8.dfsg-5.1ubuntu4.17 |
| ubuntu 14.04 | libxml2 | 2.9.1+dfsg1-3ubuntu4.9 |
| ubuntu 14.04-ESM | libxml2 | 2.9.1+dfsg1-3ubuntu4.9 |
| ubuntu 16.04 | libxml2 | 2.9.3+dfsg1-1ubuntu0.2 |
| ubuntu 16.04-ESM | libxml2 | 2.9.3+dfsg1-1ubuntu0.2 |
| ubuntu 16.10 | libxml2 | 2.9.4+dfsg1-2ubuntu0.1 |
References
- http://lists.apple.com/archives/security-announce/2016/Sep/msg00006.html
- http://lists.apple.com/archives/security-announce/2016/Sep/msg00008.html
- http://lists.apple.com/archives/security-announce/2016/Sep/msg00010.html
- http://lists.apple.com/archives/security-announce/2016/Sep/msg00011.html
- http://www.securityfocus.com/bid/93054
- http://www.securitytracker.com/id/1036858
- http://www.securitytracker.com/id/1038623
- https://access.redhat.com/security/cve/CVE-2016-4658
All 21 references
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://git.gnome.org/browse/libxml2/commit/?id=c1d1f7121194036608bf555f08d3062a36fd344b
- https://github.com/sparklemotion/nokogiri/issues/1615
- https://linux.oracle.com/cve/CVE-2016-4658.html
- https://linux.oracle.com/errata/ELSA-2021-3810.html
- https://nvd.nist.gov/vuln/detail/CVE-2016-4658
- https://security.gentoo.org/glsa/201701-37
- https://support.apple.com/HT207141
- https://support.apple.com/HT207142
- https://support.apple.com/HT207143
- https://support.apple.com/HT207170
- https://ubuntu.com/security/notices/USN-3235-1
- https://www.cve.org/CVERecord?id=CVE-2016-4658