CVE-2016-1839: Heap-based buffer over-read in libxml2 xmlDictAddString
- Vendors
- Debian ProjectRed HatAppleXmlsoftCanonicalMcafee
CVE-2016-1839 is a heap-based buffer over-read in the xmlDictAddString function in libxml2 before version 2.9.4. Processing a specially crafted XML document can cause an application using the library to read beyond a heap buffer and crash, resulting in denial of service. Affected Apple platforms include iOS before 9.3.2, OS X before 10.11.5, tvOS before 9.2.1, and watchOS before 2.2.1. A related incomplete-fix vulnerability is tracked separately as CVE-2017-9050.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can crash an application that processes malicious XML using the affected library, interrupting the application or its dependent services. Arbitrary code execution and information disclosure are not established impacts for this specific CVE.
Mitigation
If you can’t patch tonight, do this now.
For applicable HTTP deployments, place affected hosts behind a ProxySG reverse proxy running SGOS 6.6.4 or later and configure the CPL rule http.request.detection.xml.invalid(block) within a <proxy> policy layer to block malformed XML requests. This protection applies only to traffic traversing the configured reverse proxy and does not replace updating affected software.
Remediation
Patch, then assume compromise.
Upgrade upstream libxml2 to version 2.9.4 or later, or install a vendor-supported package containing the backported fix. Fixed RHEL packages include 2.7.6-21.el6_8.1 for RHEL 6 and 2.9.1-6.el7_2.3 for RHEL 7 under RHSA-2016:1292. Update Echo libxml2-2.9.1 and related packages to 2.9.1+e1 or later. For affected Apple systems, update to iOS 9.3.2, OS X 10.11.5, tvOS 9.2.1, watchOS 2.2.1, or later releases. Restart all applications linked against libxml2, or reboot, to load the corrected library. Also ensure the selected release addresses CVE-2017-9050, which concerns an incomplete fix for this vulnerability.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2016-1839 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2016-1839 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2016-1839?
- Yes. As of Oct 25, 2026, Mallory has reports of a public exploit for CVE-2016-1839.
- Is there a patch for CVE-2016-1839?
- Upgrade upstream libxml2 to version 2.9.4 or later, or install a vendor-supported package containing the backported fix. Fixed RHEL packages include 2.7.6-21.el6_8.1 for RHEL 6 and 2.9.1-6.el7_2.3 for RHEL 7 under RHSA-2016:1292.
- What products are affected by CVE-2016-1839?
- Apple Tvos, Apple Watchos, Xmlsoft Libxml2, Apple Iphone Os, Apple Mac Os X, and 9 more.
- How severe is CVE-2016-1839?
- CVE-2016-1839 has a CVSS v3 score of 5.5 (Medium) and an EPSS score of 7.3% (95th percentile) as of Oct 25, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.