cve.bz

CVE-2016-4658

9.8 criticalEPSS 8.6%Fix available

Critical (9.8). EPSS 8.6% estimated probability of exploitation activity in the next 30 days. Fixed in nokogiri 1.7.1.

On this page
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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
8.6% (unchanged from 8.6% a week ago; 8.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2016-4658 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-4658?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-4658?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2016-4658 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2016-4658

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2016-4658](https://cve.bz/cve/badge/CVE-2016-4658.svg)](https://cve.bz/cve/CVE-2016-4658)

HTML:

<a href="https://cve.bz/cve/CVE-2016-4658"><img src="https://cve.bz/cve/badge/CVE-2016-4658.svg" alt="CVE-2016-4658"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apple:iphone_osbefore 10.0
apple:mac_os_xbefore 10.12
apple:tvosbefore 10.0
apple:watchosbefore 3.0
xmlsoft:libxml2before 2.9.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fr52-4hqw-p27fRubyGemsnokogiri<1.7.11.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libxml22.8.0+dfsg1-7+wheezy7DLA-691-1
Debian8libxml22.9.1+dfsg1-5+deb8u4DSA-3744-1
Debian12, 13, 14libxml22.9.4+dfsg1-2.1DEBIAN-CVE-2016-4658
Ubuntu14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.9UBUNTU-CVE-2016-4658 USN-3235-1
Ubuntu16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.2UBUNTU-CVE-2016-4658 USN-3235-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationlibxml2, libxml2-devel, libxml2-python and 2 more0:2.9.1-6.el7_9.6RHSA-2021:3810
Red Hatenterprise_linux:7::computenodelibxml2-devel, libxml2-static, libxml2-debuginfo0:2.9.1-6.el7_9.6RHSA-2021:3810
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1libxml2, python-libxml22.9.1-26.3.1SUSE-SU-2016:2650-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morelibxml2, python-libxml22.9.4-33.1SUSE-SU-2017:0380-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4libxml2-python2.7.6-0.50.4SUSE-SU-2016:2652-1
SUSELinux Enterprise Server 11 SP4, Linux Enterprise Server for SAP Applications 11 SP4, Linux Enterprise Software Development Kit 11 SP4libxml22.7.6-0.50.1SUSE-SU-2016:2652-1
SUSELinux Enterprise Software Development Kit 12 SP1libxml22.9.1-26.3.1SUSE-SU-2016:2650-1
SUSELinux Enterprise Software Development Kit 12 SP2libxml22.9.4-33.1SUSE-SU-2017:0380-1
openSUSETumbleweedlibxml22.9.12-1.2openSUSE-SU-2024:11016-1
openSUSETumbleweedruby3.2-rubygem-nokogiri1.13.9-1.7openSUSE-SU-2024:13165-1
openSUSETumbleweedrubygem-nokogiri1.13.3-1.1openSUSE-SU-2024:11912-1
openSUSETumbleweedrubygem-nokogiri1.15.5-1.5openSUSE-SU-2024:14174-1
openSUSETumbleweedrubygem-nokogiri1.18.2-1.1openSUSE-SU-2025:14697-1
openSUSETumbleweedrubygem-nokogiri1.18.9-1.4openSUSE-SU-2026:10356-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw can be triggered by parsing untrusted XML files via applications compiled with libxml2 causing the application to crash. For web browsers or browser like applications, which parse untrusted web content, it may be possible to trigger this flaw without any user intervention and cause remote code execution with the permissions of the user running the browser. For other applications this flaw is difficult to trigger and even difficult to exploit in real life situations.

The status of mingw-libxml2 package in RHEL-8 is marked as "not-affected" because it does not impact end-users.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7libxml2-0:2.9.1-6.el7_9.6Fixed 2021-10-12RHSA-2021:3810
Red Hat Enterprise Linux 5libxml2Will not fix
Red Hat Enterprise Linux 6libxml2Will not fix
Red Hat Enterprise Linux 8libxml2Not affected
Red Hat Enterprise Linux 8mingw-libxml2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2016-4658.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON