Home › CVE › Vulnerabilities
CVE-2026-137951 — libexpat
One of 2 libexpat vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.3
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- low on confidentiality and availability, none on integrity
- Impact on other systems
- none
Weakness
- CWE-125: Out-of-bounds Read
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| libexpat | ≥ 2.6.0, ≤ 2.11.0 | — |
References by type
Patches and fixed releases
Other references
Affected
- libexpat
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-137951?
libexpat 2.6.0 through 2.11.0 built with XMLGE=0 and XMLUNICODE 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. Weakness type: Out-of-bounds Read (CWE-125).
How severe is CVE-2026-137951?
CVE-2026-137951 has a CVSS 4.0 base score of 6.3 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-137951 being exploited?
Not as far as is known: CVE-2026-137951 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-137951?
libexpat ≥ 2.6.0, ≤ 2.11.0.
How do I fix CVE-2026-137951?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.