Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted XML to parser
-
DeliveryInternal DTD with repeated ATTLIST declarations
-
ExploitDuplicate #IMPLIED/#REQUIRED attrs not detected
-
ExecutionQuadratic work in storeAtts()
-
ImpactCPU exhaustion / denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | Exploitation requires the consuming application to parse attacker-supplied XML with libexpat 2.11.0 or earlier AND to permit processing of an internal DTD subset, since the payload is repeated non-ID #IMPLIED/#REQUIRED ATTLIST attribute declarations placed in that internal subset. No authentication (PR:N), user interaction (UI:N), or special attack requirements (AT:N) are needed once such input reaches the parser. Limiting factors: deployments that disable DTD/internal-subset processing, enforce input-size limits, or sandbox parsing are not practically exploitable; impact is CPU consumption/slowdown (quadratic, availability-only) rather than crash, memory corruption, or data exposure. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 8.7 (High) and describes a remote, unauthenticated, low-complexity trigger with no user interaction, but the impact is strictly availability (VC:N/VI:N/VA:H) - this is a CPU-exhaustion DoS (CWE-407, algorithmic complexity), not a code-execution or data-disclosure flaw. No EPSS score is provided and the CVE is NOT in CISA KEV; there is no public exploit identified in the input (no 'POC confirmed' signal). The vuln.today Decision label is 'this_week', indicating meaningful but non-emergency urgency - consistent with a high-severity-but-availability-only issue rather than an act-now scenario. The practical risk is amplified by libexpat's ubiquity (embedded in Python, browsers, Android, and countless applications) yet gated by exploitability conditions: the application must parse attacker-controlled XML with internal DTD subset processing enabled, which many hardened deployments disable. The complexity is quadratic, not exponential, so the effect is CPU amplification/slowdown rather than an instant crash. Net: a genuine priority to patch broadly given the install base, but real-world blast radius depends heavily on whether a given consumer parses untrusted XML with DTDs enabled - verify per-application. Note the description states the trigger explicitly (repeated ATTLIST declarations), and the fix PR #1537 corroborates the missing duplicate-detection logic. |
| Exploit ScenarioDerived | An attacker submits a crafted XML document to an application that uses libexpat 2.11.0 or earlier to parse untrusted input with internal DTD subset processing enabled. The document's internal DTD contains many repeated non-ID #IMPLIED or #REQUIRED ATTLIST attribute declarations, which libexpat fails to deduplicate, driving quadratic CPU consumption in storeAtts() and stalling the parser. No public exploit is identified at time of analysis, though the fix PR (#1537) illustrates the exact missing-check that enables the trigger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 27, 2026
Denial of service in libexpat through 2.11.0 occurs when a consuming application parses attacker-supplied XML that includes repeated ATTLIST declarations in an internal DTD subset, allowing remote unauthenticated attackers to drive quadratic CPU consumption and degrade availability. The defect is limited to availability impact and is not a code-execution or data-disclosure flaw; the CVSS 4.0 score is 8.7 High. An upstream fix is available in PR 1537, and no public exploit identified at time of analysis.
RemediationAI
Apply the upstream fix in PR 1537 (https://github.com/libexpat/libexpat/pull/1537) and update to a libexpat release that contains it when available; the supplied data confirms an upstream fix available via PR/commit, but a released patched version is not independently confirmed. The VulnCheck advisory is at https://www.vulncheck.com/advisories/libexpat-through-2.11.0-denial-of-service-via-defineattribute-duplicate-declarations. If upgrading cannot be done immediately, configure the XML parser or application layer to reject or disable internal DTD subset processing, accepting that documents relying on DTD-defined entities or default attributes may fail; enforce input-size limits before parsing, accepting that legitimate large XML documents may be rejected; and isolate parsing in a resource-capped process or sandbox to contain CPU exhaustion, with added operational overhead.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libexpat is a C library for parsing XML, and CVE-2026-137992 is an algorithmic-complexity flaw (CWE-407) in defineAttribute() in lib/xmlparse.c. Before the fix, duplicate detection for a declared attribute used a guard that only performed the default-attribute lookup when value was set or the attribute was an ID; duplicate non-ID attributes declared #IMPLIED or #REQUIRED have no default value, so they bypassed that check. Repeated ATTLIST declarations for such names in an internal DTD subset then cause storeAtts() to repeat work during parsing, producing quadratic CPU growth. The supplied patch removes the value/isId guard and always looks up the attribute name in type->defaultAttForName, returning a duplicate before considering ID assignment. The CPE cpe:2.3:a:libexpat:libexpat:*:*:*:*:*:*:*:* is wildcarded, so the version bound comes from the advisory: through 2.11.0. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VA:H describes a network-reachable, unauthenticated trigger with no user interaction and availability-only impact; the independent assessment maps this to CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Know when Libexpat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote unauthenticated parsing of untrusted XML triggers it with no interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only CPU exhaustion (A:H, C:N/I:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.
Executive ViewAI
A denial-of-service vulnerability in libexpat, a widely used XML parsing library, could be exploited by remote attackers to degrade availability of services that process XML input. Organizations relying on applications that embed libexpat face potential service disruptions, which could impact customer-facing operations and internal workflows. Leadership should prioritize patching to maintain service uptime and avoid reputational and operational harm.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames. Rated critical severity (CVSS 9.8),
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is
In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too
CPU exhaustion in libexpat through 2.9.0 lets remote attackers stall XML parsing workloads by supplying a moderately siz
Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high s
In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEnti
Alpine Linux: expat fixed in 2.6.2-r0
XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the p
Denial of service in libexpat before 2.8.1 lets remote attackers exhaust CPU by submitting moderately sized crafted XML
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetE
Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a m
An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp
EUVD-2026-137356
GHSA-3h8c-j6x8-w4cj
NVD
CVE.org
EPSS
VulDB
Exploit-DB