CVE-2026-7210: Python Software Foundation CPython · Insufficient Entropy
Affects Python Software Foundation CPythonSource CVE Database V5
Not known to be exploited · CVSS 6.3 Medium · fixed in 3.15.0b2 : update Python Software Foundation CPython when convenient.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.15.0b2, 3.14.6, 3.13.14 +3
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 11 May 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 29 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
Full mitigation requires updating libexpat to version 2.8.0 or later and applying a patch to CPython.
Description
`xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML document to trigger hash flooding.\r\n\r\nFully mitigating this vulnerability requires both updating libexpat to 2.8.0 or later and applying this patch.
References
- mail.python.org/archives/list/security-announce@python.org/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/ (opens in a new tab)
- github.com/python/cpython/pull/149023 (opens in a new tab)
- github.com/python/cpython/issues/149018 (opens in a new tab)
- github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4 (opens in a new tab)
- github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566 (opens in a new tab)
- github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a (opens in a new tab)
- github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f (opens in a new tab)
- openwall.com/lists/oss-security/2026/05/11/8 (opens in a new tab)
- openwall.com/lists/oss-security/2026/05/11/13 (opens in a new tab)
- github.com/python/cpython/commit/e37df2a6a71d6538698e2d3188a7c345b827640b (opens in a new tab)
- github.com/python/cpython/commit/cbaecf9f16da611a646d507c1cbca265c588fc56 (opens in a new tab)
- github.com/python/cpython/commit/ea70712d1a8508e14e9677d44f838dab04dc0286 (opens in a new tab)