CVE-2024-0397
published high CVSS 3.1 · 7.4Memory race condition in ssl.SSLContext certificate store methods
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.14 · 3.11.0 to < 3.11.9 · 3.12.0 to < 3.12.3 · 3.13.0a1 to < 3.13.0a5 · Other versions: unaffected | Affected | Not stated | PSF |
| python_software_foundation | — | cpython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.14 · 3.11.0 to < 3.11.9 · 3.12.0 to < 3.12.3 · 3.13.0a1 to < 3.13.0a5 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2766 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PYTHON3.8-2024-016 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-699 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-788 | Fixed | Not stated | Amazon Linux assessment |
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.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.14 (affected · python)3.11.0 to < 3.11.9 (affected · python)3.12.0 to < 3.12.3 (affected · python)3.13.0a1 to < 3.13.0a5 (affected · python)Default: unaffected | PSF · cna |
| python_software_foundation | cpython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.14 (affected · python)3.11.0 to < 3.11.9 (affected · python)3.12.0 to < 3.12.3 (affected · python)3.13.0a1 to < 3.13.0a5 (affected · python)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-362 CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
12- http://www.openwall.com/lists/oss-security/2024/06/17/2
- https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
- https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
- https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
- https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
- https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
- https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
- https://github.com/python/cpython/issues/114572
- https://github.com/python/cpython/pull/114573
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
- https://security.netapp.com/advisory/ntap-20250411-0006/
Provider assertions
3PSF · cna
Memory race condition in ssl.SSLContext certificate store methods
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b11b118bf8a8ba7894577df09f79ff30cd3a672f35331fc9e04b3a315dde03b5
- Ingested
- 23 Sep 2026, 08:16:19 UTC
- Source record
- Official CVE record