Out-of-Bounds Read Vulnerability in Expat by Libexpat
CVE-2026-76641

8.7HIGH

Key Information:

Vendor

Libexpat

Status
Vendor
CVE Published:
20 August 2026

What is CVE-2026-76641?

An out-of-bounds read vulnerability exists in the Expat XML parser, specifically through versions up to 2.8.3. This vulnerability arises from memory corruption issues when processing XML with external entity parsers created via XML_ExternalEntityParserCreate. The problem is rooted in a struct size mismatch within ELEMENT_TYPE members, which leads to the storeAtts function reading the attIndex member beyond the allocated memory boundaries. Such an exploitation results in a failure to normalize whitespace in non-CDATA attributes and can cause wild pointer dereferences, leading to potential segmentation faults. This vulnerability stems from a fix previously implemented to address a different issue.

Affected Version(s)

libexpat 0 <= 2.8.3

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

ZeyouLiu (@liuzeyouzeyou)
ZeyouLiu (@liuzeyouzeyou)
.