CVE-2026-137951

libexpat 2.6.0 through 2.11.0 Out-of-Bounds Read via storeSelfEntityValue

Published Nov 27, 2026 CVSS 4.0 · 6.3 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability causes an out-of-bounds read inside the function storeSelfEntityValue(). The flaw occurs when narrow string literals are incorrectly interpreted as wide strings during parsing, allowing the attacker to read memory beyond allocated buffers. The data exposed may contain sensitive application state or system secrets, and the vulnerability can also lead to application crashes.

Affected Systems

The issue affects libexpat libraries from version 2.6.0 through 2.11.0 when built with the configuration options XML_GE=0 and XML_UNICODE enabled. Many applications that incorporate libexpat for XML processing, from utilities to web servers, are potentially impacted by this build scenario.

Risk and Exploitability

With a CVSS score of 6.3, the risk is moderate. EPSS information is not available, and the flaw is not listed in the CISA KEV catalog, suggesting that it has not yet been widely exploited. The likely attack vector involves providing a specially crafted XML document containing a DOCTYPE declaration that defines a general entity. If an attacker can influence the XML input, they may trigger the out-of-bounds read locally or remotely, depending on how the application processes incoming XML.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to a fixed release such as 2.12.0 or later and rebuild any applications that depend on the library.
  • If an upgrade is unavailable, rebuild libexpat with the XML_GE option enabled (XML_GE=1) and disable XML_UNICODE, so that narrow strings are treated correctly.
  • Configure XML parsers to reject or ignore DOCTYPE declarations and internal entity definitions, preventing the attacker from supplying the vulnerable entity types.

Generated by OpenCVE AI on November 27, 2026 at 16:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title libexpat 2.6.0 through 2.11.0 Out-of-Bounds Read via storeSelfEntityValue
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-125
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 3:22 PM
Reserved
Nov 27, 2026, 2:46 PM
Status
Awaiting Analysis
Published
Nov 27, 2026, 4:18 PM
Modified
Nov 27, 2026, 4:18 PM