CVE-2026-137992 in Libexpatinfo

Summary

by MITRE • 11/27/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified within libexpat versions up through 2.11.0 represents a significant denial of service risk rooted in the library's handling of XML Document Type Definition subsets, specifically concerning attribute declarations. This flaw is located within the defineAttribute function found in the xmlparse.c source file and relates to how the parser processes internal DTDs that contain repeated ATTLIST declarations for attributes marked as either #IMPLIED or #REQUIRED. The core technical deficiency lies in the failure of the parsing engine to detect duplicate non-ID attribute definitions during this phase, which leads to inefficient memory management and processing logic downstream.

When an attacker supplies a crafted XML document featuring numerous redundant ATTLIST entries within its internal DTD subset, libexpat attempts to store these attributes using the storeAtts function. Because the parser does not properly identify or skip duplicate non-ID attribute declarations for #IMPLIED or #REQUIRED types, it proceeds to allocate and manage memory structures redundantly. This lack of deduplication causes the computational complexity associated with storing attributes to degrade from linear time to quadratic time relative to the number of repeated definitions. Consequently, as the volume of these crafted entries increases, the CPU consumption escalates dramatically, leading to severe performance degradation or complete system unavailability due to resource exhaustion.

From a classification perspective, this vulnerability aligns closely with CWE-400, which describes conditions where resources are not properly controlled, resulting in denial of service. The specific mechanism involves inefficient algorithmic complexity that allows an attacker to trigger excessive CPU usage through specially crafted input data. In the context of the MITRE ATT&CK framework, this behavior is indicative of techniques related to Resource Hijacking or Denial of Service via application layer attacks, where the adversary leverages a flaw in parsing logic to consume system resources disproportionately without necessarily compromising confidentiality or integrity.

The operational impact of this vulnerability extends beyond simple performance slowdowns; it poses a direct threat to service availability for any application relying on libexpat for XML processing. Systems that process untrusted or semi-trusted XML input, such as web services, document converters, or configuration parsers, are particularly susceptible if they do not implement additional safeguards against malformed DTD structures. An attacker can exploit this by sending a relatively small but strategically structured payload containing many repeated attribute declarations to exhaust the CPU resources of the host system, effectively rendering the service inaccessible to legitimate users.

To mitigate this risk, organizations utilizing libexpat should prioritize upgrading to version 2.11.1 or later, where the issue in defineAttribute has been addressed to properly detect and handle duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. For environments that cannot immediately upgrade, implementing input validation at the application layer is recommended as a compensating control. This includes restricting the size of internal DTD subsets, limiting the number of ATTLIST entries allowed per element definition, or employing XML parsers with stricter security profiles such as disabling external entity processing and enforcing schema-based validation where applicable to filter out malformed structures before they reach the expat parsing engine.

Responsible

VulnCheck

Reservation

11/27/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!