Skip to content
OpenAdvisories
High · 7.4 CVE-2024-0397 EUVD-2024-16193GHSA-xhf3-pp4q-gxh5

Memory race condition in ssl.SSLContext certificate store methods

Published Jun 17, 2024 · Updated Nov 3, 2025 · Assigned by PSF

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 products

VendorProductAffectedFixed
Python Software Foundation CPython < 3.8.20, 3.9.0 – < 3.9.20, 3.10.0 – < 3.10.14, 3.11.0 – < 3.11.9, 3.12.0 – < 3.12.3, 3.13.0a1 – < 3.13.0a5 3.8.20

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pypy3 7.3.16+dfsg-1 —
Debian 13 pypy3 7.3.16+dfsg-1 —
Debian 12 pypy3 No fix yet —
Debian 12 python3.11 3.11.2-6+deb12u3 DSA-5759-1
Debian 11 python3.9 3.9.2-1+deb11u2 DLA-3980-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python3.10 3.10.12-1~22.04.5 USN-6928-1
Ubuntu 20.04 LTS python3.8 3.8.10-0ubuntu1~20.04.11 USN-6928-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS python2.7 +1 No fix yet —
Ubuntu Pro 20.04 LTS python2.7 +1 No fix yet —
Ubuntu Pro 18.04 LTS python2.7 +3 No fix yet —
Ubuntu Pro 16.04 LTS python2.7 No fix yet —
Ubuntu Pro 14.04 LTS python2.7 +1 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 python3 +8 3.9.21-1.el9_5 RHSA-2024:10983
RHEL 9 python3.11 +6 3.11.9-7.el9 RHSA-2024:9192
RHEL 9 python3.12 +6 3.12.5-2.el9 RHSA-2024:9190
ReleasePackageFixed inAdvisory
SLES 15 SP6 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLES 15 SP6 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLES 15 SP6 python311-core 3.11.9-150600.3.3.1 SUSE-SU-2025:02089-1
SLES 15 SP5 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLES 15 SP5 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLES 15 SP5 python39 +1 3.9.19-150300.4.46.1 SUSE-SU-2024:2280-1
SLES 15 SP4 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLES 15 SP4 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLES 15 SP3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLES 15 SP3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLES 12 SP5 python36 +1 3.6.15-58.1 SUSE-SU-2024:2274-1
Show 23 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 3 python311 +1 3.11.9-150600.3.3.1 SUSE-SU-2025:02089-1
SLES 3 python312 +1 3.12.4-150600.3.3.1 SUSE-SU-2024:2572-1
SLES for SAP 15 SP4 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLES for SAP 15 SP4 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLES for SAP 15 SP3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLES for SAP 15 SP3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLES for SAP 12 SP5 python36 +1 3.6.15-58.1 SUSE-SU-2024:2274-1
SLE Micro 6.1 python311 +1 3.11.12-slfo.1.1_1.1 SUSE-SU-2025:20374-1
SLE Micro 6.0 python311 +1 3.11.8-3.1 SUSE-SU-2025:20154-1, SUSE-SU-2025:20025-1
SLE Micro 5.5 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLE Micro 5.5 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLE Micro 5.4 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLE Micro 5.4 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLE Micro 5.3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLE Micro 5.3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLE Micro 5.2 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLE Micro 5.2 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLE Micro 5.1 python3 +1 3.6.15-150000.3.150.1 SUSE-SU-2024:2249-1
SLE HPC 15 SP4 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLE HPC 15 SP4 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SLE HPC 15 SP3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SLE HPC 15 SP3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SUSE Manager Server Module 4.3 venv-salt-minion 3006.0-150000.3.67.1 SUSE-SU-2024:4021-1
SUSE Manager Server 4.3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SUSE Manager Server 4.3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SUSE Manager Proxy Module 4.3 venv-salt-minion 3006.0-150000.3.67.1 SUSE-SU-2024:4021-1
SUSE Manager Proxy 4.3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SUSE Manager Proxy 4.3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SUSE Manager Client Tools for SLE Micro 5 venv-salt-minion 3006.0-150000.3.67.1 SUSE-SU-2024:4021-1
SUSE Manager Client Tools for RHEL, Liberty and Clones 9 venv-salt-minion 3006.0-1.47.1 SUSE-SU-2024:4029-1, SUSE-EL-9-CLIENT-TOOLS-2024-4029
SUSE Manager Client Tools 15 venv-salt-minion 3006.0-150000.3.67.1 SUSE-SU-2024:4021-1
SUSE Manager Client Tools 12 venv-salt-minion 3006.0-3.65.1 SUSE-SU-2024:4020-1
SUSE Enterprise Storage 7.1 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
SUSE Enterprise Storage 7.1 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy +1 3.11.9-1.26.1 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-cryptography 3.3.2-1.18.1 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-docker 7.0.0-1.8.1 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-idna 3.4-1.9.2 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-passlib +1 1.7.4-1.3.1 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-setuptools 67.7.2-1.12.1 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-urllib3 2.0.7-1.12.1 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update saltbundlepy-zipp 3.15.0-1.9.2 SUSE-SU-2024:4029-1
SUSE EL-9:Update:Products:SaltBundle:Update venv-salt-minion 3006.0-1.47.1 SUSE-SU-2024:4029-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python310 3.10.14-2.1 openSUSE-SU-2024:14066-1
openSUSE Tumbleweed python311 3.11.9-3.1 openSUSE-SU-2024:14082-1
openSUSE Tumbleweed python312 3.12.5-1.1 openSUSE-SU-2024:14295-1
openSUSE Tumbleweed python38 3.8.19-3.1 openSUSE-SU-2024:14063-1
openSUSE Tumbleweed python39 3.9.19-2.1 openSUSE-SU-2024:14064-1
openSUSE Leap 15.6 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
openSUSE Leap 15.6 python3-core +1 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
openSUSE Leap 15.6 python311 +2 3.11.9-150600.3.3.1 SUSE-SU-2025:02089-1
openSUSE Leap 15.6 python312 +2 3.12.4-150600.3.3.1 SUSE-SU-2024:2572-1
openSUSE Leap 15.6 python39 +2 3.9.19-150300.4.46.1 SUSE-SU-2024:2280-1
openSUSE Leap 15.5 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
openSUSE Leap 15.5 python3-core +1 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
openSUSE Leap 15.5 python39 +2 3.9.19-150300.4.46.1 SUSE-SU-2024:2280-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
openSUSE Leap Micro 5.4 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1
openSUSE Leap Micro 5.3 python3 3.6.15-150300.10.65.2 SUSE-SU-2024:2479-1
openSUSE Leap Micro 5.3 python3-core 3.6.15-150300.10.65.1 SUSE-SU-2024:2479-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3 +7 3.9.16-1.amzn2023.0.9 ALAS2023-2024-699
Amazon Linux 2023 python3.11 +6 3.11.6-1.amzn2023.0.5 ALAS2023-2024-788
Amazon Linux 2 python3 +6 3.7.16-1.amzn2.0.13 ALAS2-2025-2766

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python3 3.12.3-1 —
Azure Linux 2 (CBL-Mariner) python3 3.9.19-3 —

Advisories 36

References