Stack overflow parsing XML with deeply nested DTD content models
CVE-2026-4224Published 16 Mar 2026, 17:52 UTC
Real-world risk
0.9/ 10Low
Routine
If the vulnerable configuration applies to you: 2.0
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.13; >= 3.14.0, < 3.14.4; >= 3.15.0a1, < 3.15.0a8 | 3.10.21, 3.11.16, 3.12.14, 3.13.13, 3.14.4, 3.15.0a8 |
What to do
Update to a fixed version: 3.10.21, 3.11.16, 3.12.14, 3.13.13, 3.14.4, 3.15.0a8.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.8% chance of exploitation in 30 days (percentile 57), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.270
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.27 × threat 0.850.918
- Rounded to one decimal between 0.1 and 100.9
Exploitation and evidence timeline
- 16 Mar 2026 Published
- 3 Dec 2026 Risk 0.9 (cvss fallback)
Weakness
CWE-674
References
- https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768patch
- https://mail.python.org/archives/list/[email protected]/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/vendor-advisory
- https://github.com/python/cpython/issues/145986issue-tracking
- https://github.com/python/cpython/pull/145987patch
- https://github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4apatch
- https://github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3patch
- https://github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785patch
- https://github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914feepatch
- https://github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621patch
- http://www.openwall.com/lists/oss-security/2026/03/16/4
- CVE-2026-4224 on CVE.org