CVE-2017-9048: Buffer Overflow
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libxml2to a version that resolves this vulnerability.Fixed in 2.9.4+dfsg1-7+deb10u4Fixed in 2.9.4+dfsg1-7+deb10u6Fixed in 2.9.10+dfsg-6.7+deb11u4Fixed in 2.9.14+dfsg-1.3~deb12u1Fixed in 2.9.14+dfsg-1.3 - Upgrade
Upgrade
debian/libxml2to a version that resolves this vulnerability.Fixed in 2.9.4+dfsg1-3.1Fixed in 2.9.4+dfsg1-2.2+deb9u1Fixed in 2.9.1+dfsg1-5+deb8u5
Event History
Frequently Asked Questions
What is the severity of CVE-2017-9048?
CVE-2017-9048 is classified as a critical vulnerability due to the potential for a stack-based buffer overflow leading to remote code execution.
How do I fix CVE-2017-9048?
To fix CVE-2017-9048, update libxml2 to versions 2.9.4+dfsg1-7+deb10u4 or later for Debian systems.
What systems are affected by CVE-2017-9048?
CVE-2017-9048 affects libxml2 versions prior to 2.9.4 and may impact various Debian-based systems.
What is the impact of CVE-2017-9048 exploitation?
Exploitation of CVE-2017-9048 can allow attackers to execute arbitrary code, potentially compromising the affected system.
Is CVE-2017-9048 a widely known vulnerability?
Yes, CVE-2017-9048 is a well-documented vulnerability that has been reported and discussed in various security advisories.