PT-2024-4665 · Python+9 · Python+9

Seth Larson

·

Published

2024-01-10

·

Updated

2025-08-11

·

CVE-2024-0397

CVSS v3.1

7.4

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions: Python versions prior to 3.10.14 Python versions prior to 3.11.9 Python versions prior to 3.12.3 Python versions prior to 3.13.0a5
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 may allow a remote attacker to obtain sensitive information.
Recommendations: Update to CPython 3.10.14 or later Update to CPython 3.11.9 or later Update to CPython 3.12.3 or later Update to CPython 3.13.0a5 or later As a temporary workaround, consider disabling the cert store stats() and get ca certs() functions until a patch is available.

Fix

Race Condition

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2024-12993
ALT-PU-2024-14497
AZL-42784
AZL-42796
BDU:2024-05177
BIT-LIBPYTHON-2024-0397
BIT-PYTHON-2024-0397
BIT-PYTHON-MIN-2024-0397
CVE-2024-0397
DLA-3980-1
DSA-5759-1
MGASA-2024-0317
OESA-2024-1940
OPENSUSE-SU-2024:14063-1
OPENSUSE-SU-2024:14064-1
OPENSUSE-SU-2024:14066-1
OPENSUSE-SU-2024:14082-1
OPENSUSE-SU-2024:14295-1
OPENSUSE-SU-2024_2280-1
OPENSUSE-SU-2024_2572-1
OPENSUSE-SU-2024_2982-1
PSF-2024-4
RHSA-2024:10983
RHSA-2024:9190
RHSA-2024:9192
RHSA-2024_10983
RHSA-2024_9190
RHSA-2024_9192
SUSE-SU-2024:2249-1
SUSE-SU-2024:2274-1
SUSE-SU-2024:2280-1
SUSE-SU-2024:2479-1
SUSE-SU-2024:2572-1
SUSE-SU-2024:2982-1
SUSE-SU-2024:4020-1
SUSE-SU-2024:4021-1
SUSE-SU-2024:4029-1
SUSE-SU-2024_2274-1
SUSE-SU-2024_2280-1
SUSE-SU-2025:02089-1
SUSE-SU-2025:20025-1
SUSE-SU-2025:20154-1
SUSE-SU-2025:20374-1
SUSE-SU-2025_02089-1
USN-6928-1

Affected Products

Alt Linux
Astra Linux
Debian
Ibm Aix
Linuxmint
Python
Red Hat
Red Os
Suse
Ubuntu