CVE-2026-137992

libexpat through 2.11.0 Denial of Service via defineAttribute Duplicate Declarations

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

Analysis

AI-generated

Technical impact

libexpat versions up to 2.11.0 have a flaw inside the defineAttribute() routine in lib/xmlparse.c that fails to detect duplicate non‑ID #IMPLIED or #REQUIRED attribute declarations. This flaw allows an attacker to supply a crafted XML document containing repeated ATTLIST declarations in an internal DTD subset; the parser then performs quadratic CPU consumption within storeAtts() during parsing. The consequence is a denial of service through excessive processing time or resource exhaustion. The weakness is classified as CWE‑407. The vulnerability is disclosed in no other public CVE references beyond the project’s own advisories and has not been reported to the CISA KEV catalog.

Affected Systems

The affected product is the libexpat library, specifically the 2.11.0 release and any earlier releases that have not applied the patch. The library is distributed under the libexpat project and is used in many open‑source and commercial applications that parse XML. No other vendors or product versions are explicitly listed in the CNA information.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity event. The EPSS score is not available, so the exploitation probability cannot be quantified from that metric. Because the flaw involves parsing any XML document that contains duplicate ATTLIST declarations, the likely attack vector is the injection of a malicious XML payload into a service that uses libexpat. Successful exploitation would cause the target process to consume excessive resources, potentially leading to a denial of service for that process or the hosting machine. The flaw is not currently listed in CISA KEV, but the high CVSS score suggests that attackers may target it once a suitable exploitation path is discovered.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest libexpat version (2.11.1 or later) to resolve the attribute declaration detection issue.
  • If an upgrade is not immediately feasible, reconfigure applications to disable DTD processing or restrict the XML parser to only accept external documents that do not include internal ATTLIST declarations.
  • Implement input validation that rejects XML documents containing duplicate ATTLIST declarations before invoking the parser to prevent excessive CPU usage.

Generated by OpenCVE AI on November 27, 2026 at 17:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title libexpat through 2.11.0 Denial of Service via defineAttribute Duplicate Declarations
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-407
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': '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'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 27, 2026, 4:10 PM
Reserved
Nov 27, 2026, 3:59 PM
Status
Awaiting Analysis
Published
Nov 27, 2026, 5:17 PM
Modified
Nov 27, 2026, 5:17 PM