CVE-2017-9049
High · 7.5CVSS
7.5
EPSS
4.6%
Published
May 18, 2017
CISA due date
—
Cloudanix analysis
A bug in a widely used library for handling XML data can make programs that rely on it unexpectedly stop working when they receive certain inputs.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in xmlDictComputeFastKey function in dict.c causes denial of service through application crashes in libxml2 users.
Why it matters to the business
Services relying on XML processing in affected libraries experience unexpected downtime and require restarts, impacting availability of applications such as web servers and parsers.
How an attack unfolds
An attacker supplies specially crafted XML content to trigger the incomplete fix in the dictionary key computation routine, resulting in a crash; public exploit code facilitates repeated denial-of-service attempts against any process using the vulnerable library.
How to fix it
Upgrade libxml2 to a release containing the completed fix for the buffer over-read; rebuild and redeploy dependent applications such as PHP after the library update.
How to confirm the fix worked
Confirm the installed libxml2 version exceeds the vulnerable git snapshot, then retest XML processing paths with known triggering inputs to verify absence of crashes.
Typical attack path
- Locate services or applications that parse untrusted XML using libxml2
- Generate or obtain malicious XML input designed to exercise the dict.c over-read condition
- Deliver the input through network requests, file uploads, or API calls
- Observe crash and repeat to sustain denial of service
How to detect it
Review application and system logs for abrupt process terminations during XML parsing; inspect for repeated failed requests containing XML payloads around crash timestamps.
What your security team should do
- Immediately inventory all systems for libxml2 usage and schedule upgrades
- Apply defense-in-depth by restricting untrusted XML input sources
- Enable crash reporting and monitoring for XML-related process failures
The record
libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a heap-based buffer over-read in the xmlDictComputeFastKey function in dict.c. This vulnerability causes programs that use libxml2, such as PHP, to crash. This vulnerability exists because of an incomplete fix for libxml2 Bug 759398.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libxml2 | 0 | 2.9.4+dfsg1-3.1 |
| Debian:12 | libxml2 | 0 | 2.9.4+dfsg1-3.1 |
| Debian:13 | libxml2 | 0 | 2.9.4+dfsg1-3.1 |
| Debian:14 | libxml2 | 0 | 2.9.4+dfsg1-3.1 |
| Debian:7 | libxml2 | 0 | 2.8.0+dfsg1-7+wheezy8 |
| Debian:8 | libxml2 | 0 | 2.9.1+dfsg1-5+deb8u5 |
| Debian:9 | libxml2 | 0 | 2.9.4+dfsg1-2.2+deb9u1 |
| Mageia:5 | libxml2 | 0 | 2.9.7-1.mga5 |
| Mageia:5 | perl-XML-LibXML | 0 | 2.12.100-1.2.mga5 |
| SUSE:Linux Enterprise Desktop 12 SP2 | libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Desktop 12 SP2 | python-libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | python-libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | libxml2 | 0 | 2.7.6-0.69.1 |
| SUSE:Linux Enterprise Point of Sale 11 SP3 | libxml2-python | 0 | 2.7.6-0.69.3 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | libxml2 | 0 | 2.7.6-0.69.1 |
| SUSE:Linux Enterprise Server 11 SP3-LTSS | libxml2-python | 0 | 2.7.6-0.69.3 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | libxml2 | 0 | 2.7.6-0.69.1 |
| SUSE:Linux Enterprise Server 11 SP3-TERADATA | libxml2-python | 0 | 2.7.6-0.69.3 |
| SUSE:Linux Enterprise Server 11 SP4 | libxml2 | 0 | 2.7.6-0.69.1 |
| SUSE:Linux Enterprise Server 11 SP4 | libxml2-python | 0 | 2.7.6-0.69.3 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | python-libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server 12 SP2 | libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Server 12 SP2 | libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Server 12 SP2 | python-libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Server 12 SP2 | python-libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Server 12-LTSS | libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server 12-LTSS | python-libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | python-libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | python-libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | libxml2 | 0 | 2.7.6-0.69.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | libxml2-python | 0 | 2.7.6-0.69.3 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | python-libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | python-libxml2 | 0 | 2.9.1-26.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | python-libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | python-libxml2 | 0 | 2.9.4-39.2 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | libxml2 | 0 | 2.7.6-0.69.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | libxml2 | 0 | 2.9.4-36.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | libxml2 | 0 | 2.9.4-39.2 |
| Ubuntu:14.04:LTS | libxml2 | 0 | 2.9.1+dfsg1-3ubuntu4.10 |
| Ubuntu:16.04:LTS | libxml2 | 0 | 2.9.3+dfsg1-1ubuntu0.3 |
| nuget | libxml2 | 2.9.4 | No fix |
| openSUSE:Tumbleweed | libxml2 | 0 | 2.9.12-1.2 |
Related vulnerabilities
- CVE-2025-9714 Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14… Also affects libxml2
- CVE-2025-8732 A vulnerability was found in libxml2 up to 2.14.5. Also affects libxml2
- CVE-2025-6170 A flaw was found in the interactive shell of the xmllint command-line tool, used for… Also affects libxml2
- CVE-2025-49796 A vulnerability was found in libxml2. Also affects libxml2
- CVE-2025-49795 A NULL pointer dereference vulnerability was found in libxml2 when processing XPath XML… Also affects libxml2
- CVE-2025-49794 A use-after-free vulnerability was found in libxml2. Also affects libxml2
- CVE-2025-6021 A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer… Also affects libxml2
- CVE-2025-32415 In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in… Also affects libxml2