CPython: Insufficient Entropy
CVE-2026-7210 is a high-severity insufficient entropy vulnerability in CPython from Python Software Foundation, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 3.10.22, 3.11.16, 3.12.14 as the first without the flaw, so updating CPython to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.67% chance of exploitation within 30 days, higher than 53% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update CPython to 3.10.22 or 3.11.16 or 3.12.14 or 3.13.14, whichever matches your release line, or a later version.
- Update Python to 3.13.14 or 3.14.6, whichever matches your release line, or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Python Software Foundation | CPython | before 3.10.22; 3.11.0 up to, but not including, 3.11.16; 3.12.0 up to, but not including, 3.12.14; 3.13.0 up to, but not including, 3.13.14; 3.14.0 up to, but not including, 3.14.6; 3.15.0a1 up to, but not including, 3.15.0b2 | 3.10.22, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b2 |
| Python | Python | before 3.13.14; 3.14.0 up to, but not including, 3.14.6; 3.15.0 | 3.13.14, 3.14.6 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 6.3 | Medium | CNA (python.org) |
| CVSS 3.1 | 7.5 | High | NVD |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Insufficient Entropy
The product uses an algorithm or scheme that produces insufficient entropy, leaving patterns or clusters of values that are more likely to occur than others.
How developers prevent this class of flaw
- Determine the necessary entropy to adequately provide for randomness and predictability. This can be achieved by increasing the number of bits of objects such as keys and seeds.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/python/cpython/commit/24b8f12544468e4cedf5bfbe25442fcd495391e4
- github.com/python/cpython/commit/3573b3b1ecbd99030a0b18658e1bfece771b2566
- github.com/python/cpython/commit/cbaecf9f16da611a646d507c1cbca265c588fc56
- github.com/python/cpython/commit/e37df2a6a71d6538698e2d3188a7c345b827640b
- github.com/python/cpython/commit/ea70712d1a8508e14e9677d44f838dab04dc0286
- github.com/python/cpython/commit/eeea765cb9d8f1fc3d8918b272ac3c477983f27a
- github.com/python/cpython/commit/fc9b11ff49cbc82e6f917d07a61517a2b5f3145f
- github.com/python/cpython/pull/149023Issue Tracking
Third-party and government advisories
- mail.python.org/archives/list/[email protected]/thread/PNY5OMBDPM2FRUZTWFFPJ6LISWKV627K/Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2026/05/11/13Mailing List, Third Party Advisory
- openwall.com/lists/oss-security/2026/05/11/8Mailing List, Third Party Advisory
Other references
- github.com/python/cpython/issues/149018Issue Tracking
Other vulnerabilities in CPython
- 8.2 High severity
- 9.4 Critical severity
- 7.6 High severity
- 9.2 Critical severity
- 8.4 High severity
- 7.5 High severity
Recent Insufficient Entropy vulnerabilities
- 8.8 High severity
- 9.8 Critical severity
- 8.8 High severity
- 7.5 High severity
- 8.8 High severity
- 9.8 Critical severity
Spotted an error? Tell us.