CVE Catalog

CVE-2017-9048

High
Published: Translated: NVD NIST

Summary

libxml2 version 20904-GITv2.9.4-16-g0741801 is vulnerable to a stack-based buffer overflow. The function xmlSnprintfElementContent in valid.c may strcat two more characters to the buffer without checking if the size allows it.

Risk Assessment

This vulnerability may cause programs using libxml2, such as PHP, to crash, potentially affecting service availability in the organization.

Recommendation

It is recommended to update libxml2 to the latest version to mitigate this vulnerability and to monitor applications using this library.

Other vulnerabilities in libxml2

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS