CVE-2024-45490:
An issue was discovered in libexpat before 2.6.3. xmlparse.c does not reject a negative length...
9.8
Basic Information
Technical Details
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly mentions that xmlparse.c
does not reject a negative length for XML_ParseBuffer
. The provided commit 5c1a31642e243f4870c0bd1f2afc7597976521bf
shows a direct modification to the XML_ParseBuffer
function in expat/lib/xmlparse.c
. The patch adds a condition to check if the len
argument is negative and, if so, sets an error code and returns XML_STATUS_ERROR
. This directly addresses the described vulnerability, confirming that XML_ParseBuffer
was the function susceptible to the issue prior to this patch. The other commits are related to adding tests and documentation for this fix and do not indicate other vulnerable functions related to this specific CVE description about negative length in XML_ParseBuffer
.