Memory Race Condition in Python's ssl Module
CVE-2024-0397
7.4HIGH
What is CVE-2024-0397?
A defect in the Python 'ssl' module introduces a memory race condition within the ssl.SSLContext methods 'cert_store_stats()' and 'get_ca_certs()'. This situation arises when these methods are invoked simultaneously while certificates are being loaded into the SSLContext, particularly during the TLS handshake process when a certificate directory is set. This can lead to unpredictable behavior and potential issues in certificate handling. Resolution is available in the latest versions of CPython.
Affected Version(s)
CPython 0 < 3.8.20
CPython 3.9.0 < 3.9.20
CPython 3.10.0 < 3.10.14