Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2016-1839: Heap-based buffer over-read in libxml2 xmlDictAddString

Published May 20, 2016 · Updated 29 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS5.5Medium · v3
EPSS7.3%95th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
Debian ProjectRed HatAppleXmlsoftCanonicalMcafee
IdentifiersCVE-2016-1839CWE-125 · Out-of-bounds Read

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
Candidate exploits are awaiting analysis. View them in Mallory.
Exposure surface

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.

VendorProductType
AppleIphone Osoperating_system
AppleMac Os Xoperating_system
AppleTvosoperating_system
AppleWatchosapplication
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
McafeeWeb Gatewayapplication
Red HatEnterprise Linux Desktopoperating_system
Red HatEnterprise Linux Serveroperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatEnterprise Linux Server Eusoperating_system
Red HatEnterprise Linux Server Tusoperating_system
Red HatEnterprise Linux Workstationoperating_system
XmlsoftLibxml2application
FAQ

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.
Activity feed

Recent activity

7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+2 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.