cbcvebase.
CVE-2017-9048
published 2017-05-18

CVE-2017-9048: libxml2 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c is supposed to…

PriorityP343high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
4.89%
91.0th percentile
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.

Affected

8 ranges
VendorProductVersion rangeFixed in
debianlibxml2< libxml2 2.9.4+dfsg1-3.1 (bookworm)libxml2 2.9.4+dfsg1-3.1 (bookworm)
xmlsoftlibxml2
xmlsoftlibxml2>= 0 < 2.9.4+dfsg1-3.12.9.4+dfsg1-3.1
xmlsoftlibxml2>= 0 < 2.9.4+dfsg1-3.12.9.4+dfsg1-3.1
xmlsoftlibxml2>= 0 < 2.9.4+dfsg1-3.12.9.4+dfsg1-3.1
xmlsoftlibxml2>= 0 < 2.9.4+dfsg1-3.12.9.4+dfsg1-3.1
xmlsoftlibxml2>= 0 < 2.9.1+dfsg1-3ubuntu4.102.9.1+dfsg1-3ubuntu4.10
xmlsoftlibxml2>= 0 < 2.9.3+dfsg1-1ubuntu0.32.9.3+dfsg1-1ubuntu0.3

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv3.07.5HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.