CVE-2017-9048

HIGH CVSS 3.1: 7.5 EPSS 4.85%
Updated Oct 14, 2026
xmlsoft
Parameter Value
CVSS 7.5 (HIGH)
Type CWE-119 (Buffer Overflow)
Vendor xmlsoft
Public PoC No

libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. At the end of the routine, the function may strcat two more characters without checking whether the current strlen(buf) + 2 < size.

This vulnerability causes programs that use libxml2, such as PHP, to crash.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Xmlsoft Libxml2
cpe:2.3:a:xmlsoft:libxml2:2.9.4:*:*:*:*:*:*:*
— —