7.4
High
CVE-2024-0397 A defect was discovered in the Python “ssl” module where there is a memory race condition with the ssl.SSLContext…
Description
A defect was discovered in the Python “ssl” module where there is a memory race condition with the ssl.SSLContext methods “cert_store_stats()” and “get_ca_certs()”. The race condition can be triggered if the methods are called at the same time as certificates are loaded into the SSLContext, such as during the TLS handshake with a certificate directory configured. This issue is fixed in CPython 3.10.14, 3.11.9, 3.12.3, and 3.13.0a5.
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| CPython 3.13 | 3.13.0a1 → < 3.13.0a5 | 3.13.0a5 |
| CPython 3.12 | 3.12.0 → < 3.12.3 | 3.12.3 |
| CPython 3.11 | 3.11.0 → < 3.11.9 | 3.11.9 |
| CPython 3.10 | 3.10.0 → < 3.10.14 | 3.10.14 |
| CPython 3.9 | 3.9.0 → < 3.9.20 | 3.9.20 |
| CPython 3.8 | earliest → < 3.8.20 | 3.8.20 |
| cpython 3.13 | 3.13.0a1 → < 3.13.0a5 | 3.13.0a5 |
| cpython 3.12 | 3.12.0 → < 3.12.3 | 3.12.3 |
| cpython 3.11 | 3.11.0 → < 3.11.9 | 3.11.9 |
References
- github.com github.com
- github.com github.com
- mail.python.org mail.python.org
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- github.com github.com
- www.openwall.com www.openwall.com
Timeline
- Published
- Last modified
Other CVEs of CPython
The 79 CVEs of CPython →
CVE-2026-116566
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be…
5.3
Medium
CVE-2026-103995
Lenient parsing of integers for response body and chunk framing
2.0
Low
CVE-2026-115557
Python has added a denylist for known compromised certificates to the "ssl" module to ensure user safety even without…
9.4
Critical
CVE-2026-114583
tarfile.tar_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like…
6.9
Medium