C stack overflow in Expat ElementDeclHandler (CPython <3.15)
CVE-2026-4224 Published on March 16, 2026

Stack overflow parsing XML with deeply nested DTD content models
When an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content model a C stack overflow occurs.

Vendor Advisory NVD

Vulnerability Analysis

CVE-2026-4224 is exploitable with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
LOW
User Interaction:
NONE

Weakness Type

What is a Stack Exhaustion Vulnerability?

The product does not properly control the amount of recursion which takes place, consuming excessive resources, such as allocated memory or the program stack.

CVE-2026-4224 has been classified to as a Stack Exhaustion vulnerability or weakness.


Products Associated with CVE-2026-4224

stack.watch emails you whenever new vulnerabilities are published in Cpython or Canonical Ubuntu Linux. Just hit a watch button to start following.

 
 

Affected Versions

Python Software Foundation CPython:

Exploit Probability

EPSS
0.62%
Percentile
46.15%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.