CVE-2017-9047: xmlsoft libxml2
Vulnerability summary
CVE-2017-9047 is a high (CVSS 7.5) vulnerability in xmlsoft libxml2. EPSS estimates a 3.16% chance of exploitation in the next 30 days, higher than 87.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 6Timeline
- 18-05-2017PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
Description
A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. The variable len is assigned strlen(buf). If the content->type is XML_ELEMENT_CONTENT_ELEMENT, then (i) the content->prefix is appended to buf (if it actually fits) whereupon (ii) content->name is written to the buffer. However, the check for whether the content->name actually fits also uses 'len' rather than the updated buffer length strlen(buf). This allows us to write about "size" many bytes beyond the allocated memory. This vulnerability causes programs that use libxml2, such as PHP, to crash.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
3.16%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
Decrease -0.03 pp
From 3.19% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- libxml2< 2.9.4+dfsg1-3.1
Ubuntu1 product
- libxml2< 2.9.1+dfsg1-3ubuntu4.10 | < 2.9.3+dfsg1-1ubuntu0.3
Xmlsoft1 product
- libxml22.9.4
3 vendors · 3 products
References
12 links- www.openwall.com/lists/oss-security/2017/05/15/1X Refsource MISCExploitMailing ListPatchThird Party AdvisoryREPORT