CVE-2024-0397
CVE-2024-0397 — Memory race condition in ssl.SSLContext certificate store methods
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.
Published Updated Sources: cvelistV5, PSF
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.4
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.4 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-362
References
12 on the record
- github.com/python/cpython/issues/114572
issue-tracking
- github.com/python/cpython/pull/114573
patch
- mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
vendor-advisory
- github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
patch
- github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
patch
- github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
patch
- github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
patch
- github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
patch
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-115557 Distrust compromised intermediate certificates in ssl moduleCVSS 9.4
- CVE-2021-21166 Google Chromium Race Condition VulnerabilityCVSS 8.8 · CISA KEV
- CVE-2020-6820 Mozilla Firefox And Thunderbird Use-After-Free VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2020-6819 Mozilla Firefox And Thunderbird Use-After-Free VulnerabilityCVSS 8.1 · CISA KEV
- CVE-2025-43510 Apple Multiple Products Improper Locking VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2023-36884 Microsoft Windows Search Remote Code Execution VulnerabilityCVSS 7.5 · CISA KEV
Elsewhere on this site
- Python Software Foundationevery CVE for this vendor
- CWE-362other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.