Out-of-Bounds Read Vulnerability in libexpat Product by Expat Developers
CVE-2026-137951
6.3MEDIUM
What is CVE-2026-137951?
libexpat versions 2.6.0 to 2.11.0 are impacted by an out-of-bounds read vulnerability occurring in the storeSelfEntityValue() function. This issue results from the improper handling of narrow string literals as wide strings when built with XML_GE=0 and XML_UNICODE enabled. Attackers can exploit this vulnerability by crafting a malicious XML document with a DOCTYPE declaration that triggers the parser to access adjacent static memory, which could lead to exposure of sensitive data or crashing the XML parser.
Affected Version(s)
libexpat 2.6.0 <= 2.11.0
