
CVE catalog
CVE-2017-9047
libxml2: CVE-2017-9047
- Severity
- High · CVSS 7.5
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.16% · Oct 27, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libxml2 | sid | 2.15.4+dfsg-1 | fixed |
| Debian | libxml2 | forky | 2.15.4+dfsg-1 | fixed |
| Debian | libxml2 | trixie | 2.12.7+dfsg+really2.9.14-2.1+deb13u3 | fixed |
| Debian | libxml2 | trixie-security | 2.12.7+dfsg+really2.9.14-2.1+deb13u1 | fixed |
| Debian | libxml2 | bookworm | 2.9.14+dfsg-1.3~deb12u6 | fixed |
| Debian | libxml2 | bookworm-security | 2.9.14+dfsg-1.3~deb12u4 | fixed |
| Cpe | libxml2 | Not reported | Not reported | unknown |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu2 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu3 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.1 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.2 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.3 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.4 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.5 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.6 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.7 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.8 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.9 | vulnerable |
| Ubuntu | libxml2 | 14.04 | 2.9.1+dfsg1-3ubuntu4.10 | fixed |
| Ubuntu | libxml2 | 16.04 | 2.9.2+zdfsg1-4 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.2+zdfsg1-4ubuntu1 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.2+zdfsg1-4ubuntu2 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.2+zdfsg1-4ubuntu3 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.3+dfsg1-1 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.3+dfsg1-1ubuntu0.1 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.3+dfsg1-1ubuntu0.2 | vulnerable |
| Ubuntu | libxml2 | 16.04 | 2.9.3+dfsg1-1ubuntu0.3 | fixed |
| Suse | libxml2 | linux enterprise desktop 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | python-libxml2 | linux enterprise desktop 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | libxml2 | linux enterprise server for raspberry pi 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | python-libxml2 | linux enterprise server for raspberry pi 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | libxml2 | linux enterprise software development kit 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | libxml2 | linux enterprise server 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | python-libxml2 | linux enterprise server 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | libxml2 | linux enterprise server for sap applications 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | python-libxml2 | linux enterprise server for sap applications 12 sp2 | 2.9.4-39.2 | fixed |
| Suse | libxml2 | linux enterprise server for sap applications 12 | 2.9.1-26.15.1 | fixed |
| Suse | python-libxml2 | linux enterprise server for sap applications 12 | 2.9.1-26.15.1 | fixed |
| Suse | libxml2 | linux enterprise server for sap applications 12 sp1 | 2.9.1-26.15.1 | fixed |
| Suse | python-libxml2 | linux enterprise server for sap applications 12 sp1 | 2.9.1-26.15.1 | fixed |
| Suse | libxml2 | linux enterprise server 12-ltss | 2.9.1-26.15.1 | fixed |
| Suse | python-libxml2 | linux enterprise server 12-ltss | 2.9.1-26.15.1 | fixed |
| Suse | libxml2 | linux enterprise server 12 sp1-ltss | 2.9.1-26.15.1 | fixed |
| Suse | python-libxml2 | linux enterprise server 12 sp1-ltss | 2.9.1-26.15.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libxml2 | source | sid | 2.9.4+dfsg1-3.1 | not yet assigned | Not reported | [863022] |
| Debian | libxml2 | source | forky | 2.9.4+dfsg1-3.1 | not yet assigned | Not reported | [863022] |
| Debian | libxml2 | source | trixie | 2.9.4+dfsg1-3.1 | not yet assigned | Not reported | [863022] |
| Debian | libxml2 | source | bookworm | 2.9.4+dfsg1-3.1 | not yet assigned | Not reported | [863022] |
| Ubuntu | libxml2 | deb | 14.04 | 2.9.1+dfsg1-3ubuntu4.10 | Not reported | UBUNTU-CVE-2017-9047 | Not reported |
| Ubuntu | libxml2 | deb | 16.04 | 2.9.3+dfsg1-1ubuntu0.3 | Not reported | UBUNTU-CVE-2017-9047 | Not reported |
| Suse | libxml2 | rpm | linux enterprise desktop 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise desktop 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server for raspberry pi 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server for raspberry pi 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise software development kit 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server for sap applications 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server for sap applications 12 sp2 | 2.9.4-39.2 | Not reported | SUSE-SU-2017:1538-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server for sap applications 12 | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server for sap applications 12 | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server for sap applications 12 sp1 | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server for sap applications 12 sp1 | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server 12-ltss | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server 12-ltss | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | libxml2 | rpm | linux enterprise server 12 sp1-ltss | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
| Suse | python-libxml2 | rpm | linux enterprise server 12 sp1-ltss | 2.9.1-26.15.1 | Not reported | SUSE-SU-2017:1587-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libxml2]Unknown
Details (4)
2.9.14+dfsg-1.3~deb12u6· amd64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u6· arm64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· amd64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· arm64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
- [libxml2-dev]Unknown
Source package: [libxml2]
Details (4)
2.9.14+dfsg-1.3~deb12u6· amd64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u6· arm64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· amd64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· arm64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
- [libxml2-doc]Unknown
Source package: [libxml2]
Details (4)
2.9.14+dfsg-1.3~deb12u6· all · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u6· all · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· all · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· all · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
- [libxml2-utils]Unknown
Source package: [libxml2]
Details (4)
2.9.14+dfsg-1.3~deb12u6· amd64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u6· arm64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· amd64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· arm64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
- [python3-libxml2]Unknown
Source package: [libxml2]
Details (4)
2.9.14+dfsg-1.3~deb12u6· amd64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u6· arm64 · bookwormFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· amd64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
2.9.14+dfsg-1.3~deb12u4· arm64 · bookworm-securityFixed · Fixed:
2.9.4+dfsg1-3.1dsa · libxml2 · debian · bookworm
Observed:
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-398330.json]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2017_1454-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2017-9047]
- [https://osv.dev/vulnerability/SUSE-SU-2017:1538-1]
- [https://osv.dev/vulnerability/SUSE-SU-2017:1587-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2017-9047]
- [https://security-tracker.debian.org/tracker/CVE-2017-9047]
- [https://security.access.redhat.com/data/csaf/v2/vex/2017/cve-2017-9047.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1614.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]