PT-2017-4229 · Php+4 · Php+4

Published

2017-05-15

·

Updated

2025-02-22

·

CVE-2017-9047

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 A buffer overflow issue was discovered in the xmlSnprintfElementContent function, which can cause programs using libxml2, such as PHP, to crash. The problem arises when the function attempts to recursively dump element content into a char buffer buf of size size. The variable len is assigned the value of strlen(buf), but the check for whether the content fits in the buffer uses the outdated len value instead of the updated buffer length strlen(buf). This allows writing beyond the allocated memory, potentially leading to a crash. The issue can be exploited by a remote attacker to cause a denial of service.
Recommendations For libxml2 version 20904-GITv2.9.4-16-g0741801, consider disabling the xmlSnprintfElementContent function until a patch is available to prevent potential crashes. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Buffer Overflow

Heap Based Buffer Overflow

Weakness Enumeration

Related Identifiers

ALT-PU-2019-1924
ALT-PU-2019-3079
BDU:2022-07418
CVE-2017-9047
DLA-1008-1
DLA-4064-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
SUSE-SU-2017_1538-1
SUSE-SU-2017_1587-1
USN-3424-1
USN-3424-2

Affected Products

Alt Linux
Php
Suse
Ubuntu
Libxml2