CVE-2026-137951
libexpat 2.6.0 through 2.11.0 Out-of-Bounds Read via storeSelfEntityValue
Description
libexpat 2.6.0 through 2.11.0 built with XML_GE=0 and XML_UNICODE contains an out-of-bounds read in storeSelfEntityValue() because narrow string literals are treated as wide strings. Attackers can supply an XML document whose DOCTYPE declares a general entity to expose adjacent static memory through the entity value or crash the parser.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.viliussutkus89.licenseOnly » libexpatpreliminary | >= 2.6.0, <= 2.11.0 | - |
Blast radius
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | CVE record CVE-2026-137951 | github.com |
| Advisory | NVD CVE-2026-137951 | nvd.nist.gov |
| Advisory | advisories/libexpat-2.6.0-through-2.11.0-out-of-bounds-read-via-storeselfentityvalue | vulncheck.com |
| Fix | libexpat/libexpat pull request #1534 | github.com |
| Article | libexpat/libexpat xmlparse.c | github.com |
| Package | libexpat/libexpat | github.com |
