Stack-Based Buffer Overflow in libxml2 Affecting PHP and Other Applications
CVE-2017-9048
7.5HIGH
What is CVE-2017-9048?
The libxml2 library is susceptible to a stack-based buffer overflow due to inadequate size checks in the xmlSnprintfElementContent function. This function is responsible for recursively processing element definitions into a character buffer. When the function attempts to concatenate additional characters to the buffer without verifying its current size, it can lead to program crashes and instability in applications relying on libxml2, including PHP. This vulnerability highlights the importance of proper size validation within critical libraries to prevent memory corruption risk.