Vulnerability
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.
37 advisories report this vulnerability, across 10 ecosystems.
Advisories
-
ALAS2-2025-2766
Amazon Linux 2 2017.12 - ALAS2-2025-2766: medium priority package update for python3
-
ALAS2023-2024-699
Amazon Linux 2023 - ALAS2023-2024-699: Medium priority package update for python3.9
-
ALAS2023-2024-788
Amazon Linux 2023 - ALAS2023-2024-788: Medium priority package update for python3.11
-
AZL-42784
CVE-2024-0397 affecting package python3 for versions less than 3.12.3-1
-
AZL-42796
CVE-2024-0397 affecting package python3 for versions less than 3.9.19-3
- CGA-cxvp-8wxx-f32m
- CGA-h76w-h578-gg85
-
CNA-CVE-2024-0397
Memory race condition in ssl.SSLContext certificate store methods
-
DEBIAN-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…
-
DLA-3980-1
python3.9 - security update
-
DSA-5759-1
python3.11 - security update
-
OESA-2024-1940
python3 security update
-
RHSA-2024:10983
Red Hat Security Advisory: python3.9:3.9.21 security update
-
RHSA-2024:9190
Red Hat Security Advisory: python3.12 security update
-
RHSA-2024:9192
Red Hat Security Advisory: python3.11 security update
-
RHVEX-CVE-2024-0397
cpython: python: Memory race condition in ssl.SSLContext certificate store methods
-
SUSE-EL-9-CLIENT-TOOLS-2024-4029
Security update for SUSE Manager Salt Bundle
-
SUSE-SU-2024:2249-1
Security update for python39
-
SUSE-SU-2024:2274-1
Security update for python39
-
SUSE-SU-2024:2280-1
Security update for python39
-
SUSE-SU-2024:2479-1
Security update for python3
-
SUSE-SU-2024:2572-1
Security update for python312
-
SUSE-SU-2024:4020-1
Security update for SUSE Manager Salt Bundle
-
SUSE-SU-2024:4021-1
Security update for SUSE Manager Salt Bundle
-
SUSE-SU-2024:4029-1
Security update for SUSE Manager Salt Bundle
-
SUSE-SU-2025:02089-1
Security update for python311
-
SUSE-SU-2025:20025-1
Security update for python311, python-rpm-macros
-
SUSE-SU-2025:20154-1
Security update for python311
-
SUSE-SU-2025:20374-1
Security update for python311
-
SUSEVEX-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…
-
UBUNTU-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…
-
USN-6928-1
python3.10, python3.8 vulnerabilities
-
openSUSE-SU-2024:14063-1
python38-3.8.19-3.1 on GA media
-
openSUSE-SU-2024:14064-1
python39-3.9.19-2.1 on GA media
-
openSUSE-SU-2024:14066-1
python310-3.10.14-2.1 on GA media
-
openSUSE-SU-2024:14082-1
python311-3.11.9-3.1 on GA media
-
openSUSE-SU-2024:14295-1
python312-3.12.5-1.1 on GA media
References
- http://www.openwall.com/lists/oss-security/2024/06/17/2
- https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
- https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
- https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
- https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
- https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
- https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
- https://github.com/python/cpython/issues/114572
- https://github.com/python/cpython/pull/114573
- https://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://security.netapp.com/advisory/ntap-20250411-0006/