Vulnerability in Python Software Foundation Cpython

CVE-2024-0397

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.

Vulnerability class: Race Condition

EPSS: 0.008 (53.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-0397?
CVE-2024-0397 is a high-severity vulnerability in Python Software Foundation Cpython, classified under Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition). CVSS score: 7.4/10. Published 2024-06-17.
How severe is CVE-2024-0397?
High severity. CVSS v3 base score is 7.4 out of 10.