CVE-2026-4224: Python Software Foundation CPython · CWE-674
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 6.0 Medium · fixed in 3.15.0a8 : update Python Software Foundation CPython when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.15.0a8, 3.14.4, 3.13.13 +3
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
| Python Software FoundationCPython | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid parsing untrusted XML data with Expat parsers that register ElementDeclHandler callbacks or implement application-level input validation to prevent deeply nested DTD content models.
Description
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.
References
- github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/ (opens in a new tab)
- github.com/python/cpython/issues/145986 (opens in a new tab)
- github.com/python/cpython/pull/145987 (opens in a new tab)
- github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4a (opens in a new tab)
- github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3 (opens in a new tab)
- github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785 (opens in a new tab)
- github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914fee (opens in a new tab)
- openwall.com/lists/oss-security/2026/03/16/4 (opens in a new tab)
- github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621 (opens in a new tab)