CVE & CISA-KEV Catalog

CVE-2017-9047

HIGHEPSS 87th pctl
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
libxml2Debian
Fixed in:2.9.4+dfsg1-3.1CVE-2017-9047
Fixed in:2.9.4+dfsg1-3.1CVE-2017-9047
Fixed in:2.9.4+dfsg1-3.1CVE-2017-9047
Fixed in:2.9.4+dfsg1-3.1CVE-2017-9047
libxml2Ubuntu
Fixed in:2.9.1+dfsg1-3ubuntu4.10USN-3424-1
Fixed in:2.9.3+dfsg1-1ubuntu0.3USN-3424-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

3.19%probability of exploitation in 30 days
87thpercentile

Elevated risk: more likely to be exploited than 87% of all known CVEs.

References

Related Vulnerabilities

Other CWE-119 (Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-4966Critical9.4100%KEV + RansomFix
CVE-2017-11882High7.8100%KEV + Ransom-
CVE-2020-0796Critical10.0100%KEV + Ransom-
CVE-2008-4250Critical9.899%KEV-
CVE-2017-15944Critical9.898%KEVFix
CVE-2015-0014High10.097%--
Embed a live status badge for CVE-2017-9047
CVE-2017-9047 severity badge

Markdown

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

HTML

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

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-13.