Vulnerabilities / CVE-2016-4658

critical

CVE-2016-4658

libxml2: Use after free via namespace node in XPointer ranges

Published Modified CWE 119
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

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

SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemsnokogiri1.7.1
rubygems::Ruby Advisory Databasenokogiri>= 1.7.1
amazon linux 2libxml2, libxml2-debuginfo, libxml2-devel and 2 more2.9.1-6.amzn2.3.3
debian 11libxml22.9.4+dfsg1-2.1
debian 12libxml22.9.4+dfsg1-2.1
debian 13libxml22.9.4+dfsg1-2.1
debian 14libxml22.9.4+dfsg1-2.1
debian 7libxml22.8.0+dfsg1-7+wheezy7
debian 8libxml22.9.1+dfsg1-5+deb8u4
echolibxml2, libxml2-2.9.12.9.4+dfsg1-2.1 and 1 more
Oracle Linux 7libxml2, libxml2-devel, libxml2-python and 1 more2.9.1-6.0.3.el7_9.6
Red Hatlibxml2, libxml2-devel, libxml2-python and 1 moreno fix listed
Show all 40 entries from 25 sources
SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemsnokogiri1.7.1
rubygems::Ruby Advisory Databasenokogiri>= 1.7.1
amazon linux 2libxml22.9.1-6.amzn2.3.3
amazon linux 2libxml2-debuginfo2.9.1-6.amzn2.3.3
amazon linux 2libxml2-devel2.9.1-6.amzn2.3.3
amazon linux 2libxml2-python2.9.1-6.amzn2.3.3
amazon linux 2libxml2-static2.9.1-6.amzn2.3.3
debian 11libxml22.9.4+dfsg1-2.1
debian 12libxml22.9.4+dfsg1-2.1
debian 13libxml22.9.4+dfsg1-2.1
debian 14libxml22.9.4+dfsg1-2.1
debian 7libxml22.8.0+dfsg1-7+wheezy7
debian 8libxml22.9.1+dfsg1-5+deb8u4
echolibxml22.9.4+dfsg1-2.1
echolibxml2-2.9.12.9.1+e1
Oracle Linux 7libxml22.9.1-6.0.3.el7_9.6
Oracle Linux 7libxml2-devel2.9.1-6.0.3.el7_9.6
Oracle Linux 7libxml2-python2.9.1-6.0.3.el7_9.6
Oracle Linux 7libxml2-static2.9.1-6.0.3.el7_9.6
Red Hatlibxml2no fix listed
Red Hatlibxml2-develno fix listed
Red Hatlibxml2-pythonno fix listed
Red Hatlibxml2-staticno fix listed
root.io debian 11rootio-libxml22.9.4+dfsg1-2.1
root.io debian 12rootio-libxml22.9.4+dfsg1-2.1
root.io debian 13rootio-libxml22.9.4+dfsg1-2.1
seal Red Hat 6libxml22.7.6-21.el6_8.1+sp999
seal Red Hat 6seal-libxml22.7.6-21.el6_8.1+sp999
seal Red Hat 7libxml22.9.1-6.el7_9.6+sp999
seal Red Hat 7seal-libxml22.9.1-6.el7_9.6+sp999
seal Red Hat 8libxml22.9.7-18.el8_10.1+sp999
seal Red Hat 8seal-libxml22.9.7-18.el8_10.1+sp999
seal Red Hat 9libxml22.9.13-6.el9_4+sp999
seal Red Hat 9seal-libxml22.9.13-6.el9_4+sp999
ubuntu 12.04libxml22.7.8.dfsg-5.1ubuntu4.17
ubuntu 14.04libxml22.9.1+dfsg1-3ubuntu4.9
ubuntu 14.04-ESMlibxml22.9.1+dfsg1-3ubuntu4.9
ubuntu 16.04libxml22.9.3+dfsg1-1ubuntu0.2
ubuntu 16.04-ESMlibxml22.9.3+dfsg1-1ubuntu0.2
ubuntu 16.10libxml22.9.4+dfsg1-2ubuntu0.1

References

All 21 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.