cve.bz

CVE-2017-9047 xmlsoft libxml2

7.5 highExploit referenceEPSS 3.2%Fix available

High (7.5) in xmlsoft libxml2. EPSS 3.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

7.5 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-9047 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9047?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9047?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-9047 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2017-9047

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2017-9047](https://cve.bz/cve/badge/CVE-2017-9047.svg)](https://cve.bz/cve/CVE-2017-9047)

HTML:

<a href="https://cve.bz/cve/CVE-2017-9047"><img src="https://cve.bz/cve/badge/CVE-2017-9047.svg" alt="CVE-2017-9047"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xmlsoft:libxml22.9.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7libxml22.8.0+dfsg1-7+wheezy8DLA-1008-1
Debian8libxml22.9.1+dfsg1-5+deb8u5DSA-3952-1
Debian9libxml22.9.4+dfsg1-2.2+deb9u1DSA-3952-1
Debian12, 13, 14libxml22.9.4+dfsg1-3.1DEBIAN-CVE-2017-9047
Ubuntu14.04:LTSlibxml22.9.1+dfsg1-3ubuntu4.10UBUNTU-CVE-2017-9047 USN-3424-1
Ubuntu16.04:LTSlibxml22.9.3+dfsg1-1ubuntu0.3UBUNTU-CVE-2017-9047 USN-3424-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morelibxml2, python-libxml22.9.4-36.1SUSE-SU-2017:1454-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morelibxml2, python-libxml22.9.4-39.2SUSE-SU-2017:1538-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 2 morelibxml2-python2.7.6-0.69.3SUSE-SU-2017:1557-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP3-LTSS, Linux Enterprise Server 11 SP3-TERADATA and 3 morelibxml22.7.6-0.69.1SUSE-SU-2017:1557-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server 12-LTSS, Linux Enterprise Server for SAP Applications 12 and 1 morelibxml2, python-libxml22.9.1-26.15.1SUSE-SU-2017:1587-1
SUSELinux Enterprise Software Development Kit 12 SP2libxml22.9.4-36.1SUSE-SU-2017:1454-1
SUSELinux Enterprise Software Development Kit 12 SP2libxml22.9.4-39.2SUSE-SU-2017:1538-1
openSUSETumbleweedlibxml22.9.12-1.2openSUSE-SU-2024:11016-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability exists in the DTD validation functionality of libxml2. Applications that do not attempt to validate untrusted documents are not impacted.

ProductPackageStateAdvisory
Red Hat JBoss Core ServicesFixed 2018-08-16RHSA-2018:2486
Red Hat Enterprise Linux 5libxml2Will not fix
Red Hat Enterprise Linux 6libxml2Will not fix
Red Hat Enterprise Linux 7libxml2Will not fix
Red Hat Enterprise Linux 8libxml2Not affected
Red Hat Enterprise Linux 8mingw-libxml2Affected
Red Hat JBoss Core Serviceslibxml2Affected
Red Hat JBoss Enterprise Web Server 3libxml2Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-9047.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON