CVE-2024-0397

Memory race condition in ssl.SSLContext certificate store methods

HIGH
7.4
CVSS Score
Published: June 17, 2024 at 03:09 PM UTC
Updated: June 17, 2026 at 06:53 AM UTC
1 product affected across 1 vendorPython

Using CPython by Python Software Foundation?

Get instant alerts when new vulnerabilities affect CPython - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.4
Exploit prediction
EPSS 0.8%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.8.203.10.0 ≤ v < 3.10.143.11.0 ≤ v < 3.11.93.12.0 ≤ v < 3.12.33.13.0a1 ≤ v < 3.13.0a53.9.0 ≤ v < 3.9.203.10.03.11.03.12.03.13.0a13.9.0
Affected range stops below 3.10.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.11.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.12.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13.0a5, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.8.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.20, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.4HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card