libexpat through 2.10.0 Out-of-Bounds Read via unknown_toUtf8 and unknown_toUtf16
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 7, 2026
- Updated
- Nov 11, 2026
- Reserved
- Nov 7, 2026
Description
libexpat through 2.10.0 contains an out-of-bounds read vulnerability in unknown_toUtf8() and unknown_toUtf16() in xmltok.c when handling application-registered unknown encodings. Attackers can supply a document ending in a truncated multibyte sequence so the convert callback reads past the parse buffer, leaking adjacent memory or crashing applications.
| Product | Versions |
|---|---|
| libexpat libexpat | 2.10.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 4.8 Medium | VulnCheck |
Weaknesses
- CWE-126 Buffer Over-read
References
- https://github.com/libexpat/libexpat/pull/1492PatchIssue Tracker
- https://github.com/libexpat/libexpat/blob/a70841d9ffa64ddde29ab824ed6305035ebe4c47/expat/lib/xmltok.c#L1274-L1322Technical Details
- https://github.com/libexpat/libexpatProduct Page
- VulnCheck Advisory: libexpat through 2.10.0 Out-of-Bounds Read via unknown_toUtf8 and unknown_toUtf16Third-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.