Heap-based buffer over-read in libxml2 xmlDictAddString
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.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
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.
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.
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.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.