PT-2017-4228 · Xmlsoft+3 · Libxml2+3

Marcel Böhme

+1

·

Published

2017-05-15

·

Updated

2024-06-15

·

CVE-2017-9048

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions libxml2 version 20904-GITv2.9.4-16-g0741801
Description The issue is related to a stack-based buffer overflow in the xmlSnprintfElementContent function in valid.c. This function is supposed to recursively dump the element content definition into a char buffer buf of size size. However, at the end of the routine, it may concatenate two more characters without checking whether the current strlen(buf) + 2 < size. This can cause programs that use libxml2, such as PHP, to crash. The vulnerability is associated with a buffer overflow in memory, which can be exploited by a remote attacker to cause a denial of service.
Recommendations For libxml2 version 20904-GITv2.9.4-16-g0741801, as a temporary workaround, consider disabling the xmlSnprintfElementContent function until a patch is available. Restrict access to the valid.c module to minimize the risk of exploitation. Avoid using the xmlSnprintfElementContent function in affected API endpoints until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Stack Overflow

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2019-1924
ALT-PU-2019-3079
BDU:2022-07417
CVE-2017-9048
DLA-1008-1
DSA-3952-1
MGASA-2018-0048
OPENSUSE-SU-2024:11016-1
SUSE-SU-2017:1454-1
SUSE-SU-2017:1538-1
SUSE-SU-2017:1557-1
SUSE-SU-2017:1587-1
SUSE-SU-2017:2699-1
SUSE-SU-2017:2700-1
USN-3424-1
USN-3424-2

Affected Products

Alt Linux
Suse
Ubuntu
Libxml2