Skip to main content
2 CVEs HIGH CVSS 8.7

libexpat Parser NULL Deref and DoS Flaws

2026-12-02

CVE-2026-141595 HIGH PATCH

libexpat through 2.11.0 burns quadratic CPU time in storeAtts() (lib/xmlparse.c) when it parses XML whose internal DTD declares a large number of valueless #IMPLIED attributes for one element and the document then contains a large number of start tags for that element, allowing an attacker who controls parsed XML to stall or exhaust a parsing thread. The flaw is a pure algorithmic-complexity problem (CWE-407): CVSS:4.0 scores it 8.7 with AV:N/AC:L/AT:N/PR:N/UI:N and a high availability-only impact (VC:N/VI:N/VA:H), and the independent assessment concurs (CVSS:3.1 AV:N/AC:L/PR:N/UI:N with C:N/I:N/A:H), so there is no confidentiality or integrity exposure and no code execution path. Exposure depends on the deployment: applications that hand attacker-influenced XML to expat with the internal DTD subset enabled (the default behaviour) are at risk, while parsers configured to reject or skip DOCTYPE/internal subsets are not; no public exploit has been identified at time of analysis and the issue is not in CISA KEV.

8.7
CVSS
CVE-2026-141596 HIGH PATCH

A NULL pointer dereference in libexpat through 2.11.0 (doContent() in lib/xmlparse.c) crashes applications that suspend the parser while it is inside a CDATA section contained in an internal general entity. Only applications whose handlers actually stop the parser (for example via XML_StopParser from a character-data handler) during such an entity's CDATA expansion are exposed, and attackers reach the bug by supplying a crafted XML document with an entity such as <!ENTITY ge 'a<![CDATA[...]]>'>; the result is a denial of service, not code execution or data disclosure. No public exploit was identified at time of analysis, and while the CVSS 4.0 base score is 8.2 (AV:N/AC:H/AT:P/PR:N/UI:N/VA:H), the vendor's own High complexity and Present attack-requirements metrics reflect that the flaw is only triggerable through that non-default integration pattern; an upstream fix is available as PR 1545 but no tagged patched release version is confirmed in the provided data.

8.2
CVSS

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