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.
CVE-2024-0397
Score 7.4 from GitHub Security Advisory (severity: HIGH) published 2024-06-17. NVD baseline CVSS 7.4; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.4
- EG Score
- 7.4(medium)
- EG Risk
- 34(Track)EG Risk 34/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity74% × 45%Exploitation1% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 55%
- KEV
- Not listed
Published
June 17, 2024
Last Modified
April 15, 2026
References (22)
- cna@pythonhttp://www.openwall.com/lists/oss-security/2024/06/17/2
- cna@pythonhttps://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
- cna@pythonhttps://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
- cna@pythonhttps://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
- cna@pythonhttps://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
- cna@pythonhttps://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
- cna@pythonhttps://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
- cna@pythonhttps://github.com/python/cpython/issues/114572
- cna@pythonhttps://github.com/python/cpython/pull/114573
- cna@pythonhttps://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
- af854a3a-2127-422b-91ae-364da2661108http://www.openwall.com/lists/oss-security/2024/06/17/2
- af854a3a-2127-422b-91ae-364da2661108https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
- af854a3a-2127-422b-91ae-364da2661108https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
- af854a3a-2127-422b-91ae-364da2661108https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
- af854a3a-2127-422b-91ae-364da2661108https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
Vendor Advisories for CVE-2024-0397(4)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2024-0397Microsoft Security Response Center (MSRC)
CVE-2024-0397
- RHSA-2024:10983Red Hat Product SecurityMedium
Red Hat Security Advisory: python3.9:3.9.21 security update
- RHSA-2024:9190Red Hat Product SecurityMedium
Red Hat Security Advisory: python3.12 security update
- RHSA-2024:9192Red Hat Product SecurityMedium
Red Hat Security Advisory: python3.11 security update
Patch Availability(4)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python3.10-venv (3.10.12-1~22.04.5) @ jammy | 2026-05-22 | ubuntu |
| redhat | python3.9-0:3.9.21-1.el9_5 | 2024-12-12 | redhat |
| redhat | python3.12-0:3.12.5-2.el9 | 2024-11-12 | redhat |
| redhat | python3.11-0:3.11.9-7.el9 | 2024-11-12 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(7 across 4 ecosystems)
Debian:11(3)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | 7.3.10+dfsg-1 ... 7.3.9+dfsg-5 (53 versions) | — | — |
| python2.7 | 2.7.18-10 ... 2.7.18-9 (10 versions) | — | — |
| python3.9 | 3.9.2-1, 3.9.2-1+deb11u1 | 3.9.2-1+deb11u2 | — |
Debian:12(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | 7.3.11+dfsg-2 ... 7.3.23+dfsg-1 (29 versions) | — | — |
| python3.11 | 3.11.2-6, 3.11.2-6+deb12u1, 3.11.2-6+deb12u2 | 3.11.2-6+deb12u3 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | — | 7.3.16+dfsg-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pypy3 | — | 7.3.16+dfsg-1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(1)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 8× in last 7d / 30× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 178 total refreshes for this CVE.
- 2026-09-18 19:26 UTCEPSS rescore
- 2026-09-17 17:20 UTCOSV refresh
- 2026-09-16 14:06 UTCEPSS rescore
- 2026-09-16 05:11 UTCEPSS rescore
- 2026-09-16 05:11 UTCEPSS rescore
- 2026-09-15 03:08 UTCEPSS rescore
- 2026-09-13 16:45 UTCEPSS rescore
- 2026-09-12 14:58 UTCEPSS rescore
- 2026-09-11 14:51 UTCEPSS rescore
- 2026-09-11 09:34 UTCEPSS rescore
- 2026-09-08 21:58 UTCEPSS rescore
- 2026-09-07 15:59 UTCEPSS rescore
- 2026-09-06 13:46 UTCEPSS rescore
- 2026-09-05 15:26 UTCEPSS rescore
- 2026-09-04 13:58 UTCEPSS rescore
- 2026-09-04 05:04 UTCEPSS rescore
- 2026-09-02 14:10 UTCEPSS rescore
- 2026-09-01 13:52 UTCEPSS rescore
- 2026-09-01 04:36 UTCEPSS rescore
- 2026-08-30 19:15 UTCEPSS rescore
- 2026-08-30 01:20 UTCEPSS rescore
- 2026-08-29 17:13 UTCOSV refresh
- 2026-08-28 21:39 UTCEPSS rescore
- 2026-08-27 14:23 UTCEPSS rescore
- 2026-08-26 14:44 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-25 13:47 UTCEPSS rescore
- 2026-08-23 00:17 UTCEPSS rescore
- 2026-08-23 00:17 UTCEPSS rescore
- 2026-08-21 23:47 UTCEPSS rescore
- 2026-08-20 22:53 UTCEPSS rescore
- 2026-08-19 17:02 UTCEPSS rescore
- 2026-08-18 13:46 UTCEPSS rescore
- 2026-08-16 14:54 UTCEPSS rescore
- 2026-08-16 02:12 UTCEPSS rescore
- 2026-08-15 01:28 UTCEPSS rescore
- 2026-08-13 21:58 UTCEPSS rescore
- 2026-08-13 04:30 UTCOSV refresh
- 2026-08-12 13:49 UTCEPSS rescore
- 2026-08-11 13:40 UTCEPSS rescore
- 2026-08-10 23:58 UTCEPSS rescore
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-08 16:35 UTCEPSS rescore
- 2026-08-07 16:25 UTCEPSS rescore
- 2026-08-06 13:45 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-04 10:36 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-01 04:14 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 01:29 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-28 12:20 UTCOSV refresh
- 2026-07-26 14:53 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:16 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:30 UTCEG score recompute
- 2026-07-22 23:17 UTCEG score recompute
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 14:30 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:01 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 04:22 UTCOSV refresh
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-07 13:45 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
Frequently asked(5)
What is CVE-2024-0397?
When was CVE-2024-0397 disclosed?
Is CVE-2024-0397 actively exploited?
What is the CVSS score of CVE-2024-0397?
How do I remediate CVE-2024-0397?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-0397
Is Your Infrastructure Affected by CVE-2024-0397?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.