Skip to main content

libexpat EUVDEUVD-2026-137356

| CVE-2026-137992 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-11-27 VulnCheck GHSA-3h8c-j6x8-w4cj
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted XML to parser
  2. Delivery
    Internal DTD with repeated ATTLIST declarations
  3. Exploit
    Duplicate #IMPLIED/#REQUIRED attrs not detected
  4. Execution
    Quadratic work in storeAtts()
  5. Impact
    CPU 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

libexpat 0 ≤2.11.0

Affected Packages

euvd libexpat no fix

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 57% exploitable
Prevalence
Ubiquitous
core XML parsing library embedded in Python, browsers, Android, and countless applications
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2022-25315 CRITICAL POC
9.8 Feb 18

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames. Rated critical severity (CVSS 9.8),

CVE-2025-59375 HIGH POC
7.5 Sep 15

libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is

CVE-2019-15903 HIGH POC
7.5 Sep 04

In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too

CVE-2026-115506 HIGH POC
8.7 Oct 22

CPU exhaustion in libexpat through 2.9.0 lets remote attackers stall XML parsing workloads by supplying a moderately siz

CVE-2026-93990 HIGH POC
8.7 Sep 19

Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high s

CVE-2022-43680 HIGH POC
7.5 Oct 24

In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEnti

CVE-2024-28757 HIGH POC
7.5

Alpine Linux: expat fixed in 2.6.2-r0

CVE-2017-9233 HIGH POC
7.5 Jul 25

XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the p

CVE-2026-45186 HIGH POC
7.5 May 10

Denial of service in libexpat before 2.8.1 lets remote attackers exhaust CPU by submitting moderately sized crafted XML

CVE-2013-0340 MEDIUM POC
6.8 Jan 21

expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetE

CVE-2016-0718 CRITICAL
9.8 May 26

Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a m

CVE-2024-45492 CRITICAL
9.8 Aug 30

An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy