Memory race condition in ssl.SSLContext certificate store methods
CVE-2024-0397 is fixed in 61 products on 2 platforms, first by Python 3.11 3.11.9, released April 2, 2024. 7 other affected products have no fix yet. It is not reported as exploited. Patch Radar priority: High.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Windows apps | |||
| Python 3.11 | 3.11.9 | Python 3.11 3.11.9 | Apr 2, 2024 |
| Python 3.12 | 3.12.3 | Python 3.12 3.12.3 | Apr 9, 2024 |
| Linux | |||
| idle-python3.10 · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | idle-python3.10 3.10.12-1~22.04.5 | Jun 17, 2024 |
| idle-python3.8 · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | idle-python3.8 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| libpython3.10 · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | libpython3.10 3.10.12-1~22.04.5 | Jun 17, 2024 |
| libpython3.10-minimal · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | libpython3.10-minimal 3.10.12-1~22.04.5 | Jun 17, 2024 |
| libpython3.10-stdlib · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | libpython3.10-stdlib 3.10.12-1~22.04.5 | Jun 17, 2024 |
| libpython3.10-testsuite · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | libpython3.10-testsuite 3.10.12-1~22.04.5 | Jun 17, 2024 |
| libpython3.8 · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | libpython3.8 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| libpython3.8-minimal · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | libpython3.8-minimal 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| libpython3.8-stdlib · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | libpython3.8-stdlib 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| libpython3.8-testsuite · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | libpython3.8-testsuite 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| pypy3 · Debian 13.5 (trixie) | 7.3.16+dfsg-1 | DEBIAN-CVE-2024-0397 | Jun 17, 2024 |
| pypy3 · Debian 14 | 7.3.16+dfsg-1 | DEBIAN-CVE-2024-0397 | Jun 17, 2024 |
| python-unversioned-command · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python-unversioned-command · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3 · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3 · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3 · opensuse-leap 15.6 | 3.6.15-150300.10.65.2 | SUSE-SU-2024:2479-1 | Jul 15, 2024 |
| python3 · sles 15.6 | 3.6.15-150300.10.65.2 | SUSE-SU-2024:2479-1 | Jul 15, 2024 |
| python3-core · opensuse-leap 15.6 | 3.6.15-150300.10.65.1 | SUSE-SU-2024:2479-1 | Jul 15, 2024 |
| python3-core · sles 15.6 | 3.6.15-150300.10.65.1 | SUSE-SU-2024:2479-1 | Jul 15, 2024 |
| python3-debug · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3-debug · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3-devel · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3-devel · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3-documentation · opensuse-leap 15.6 | 3.6.15-150300.10.65.1 | SUSE-SU-2024:2479-1 | Jul 15, 2024 |
| python3-idle · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3-idle · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3-libs · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3-libs · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3-test · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3-test · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3-tkinter · RHEL 9 | 0:3.9.21-1.el9_5 | RHSA-2024:10983 | Dec 12, 2024 |
| python3-tkinter · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3.10 · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | python3.10 3.10.12-1~22.04.5 | Jun 17, 2024 |
| python3.10-examples · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | python3.10-examples 3.10.12-1~22.04.5 | Jun 17, 2024 |
| python3.10-full · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | python3.10-full 3.10.12-1~22.04.5 | Jun 17, 2024 |
| python3.10-minimal · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | python3.10-minimal 3.10.12-1~22.04.5 | Jun 17, 2024 |
| python3.10-nopie · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | python3.10-nopie 3.10.12-1~22.04.5 | Jun 17, 2024 |
| python3.10-venv · Ubuntu 22.04.1 LTS (jammy) | 3.10.12-1~22.04.5 | python3.10-venv 3.10.12-1~22.04.5 | Jun 17, 2024 |
| python3.11 · Debian 12.15 (bookworm) | 3.11.2-6+deb12u3 | DSA-5759-1 | Aug 27, 2024 |
| python3.11 · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11 · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-debug · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11-debug · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-debuginfo · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-debugsource · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-devel · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11-devel · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-idle · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11-idle · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-libs · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11-libs · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-test · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11-test · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.11-tkinter · RHEL 9 | 0:3.11.9-7.el9 | RHSA-2024:9192 | Nov 12, 2024 |
| python3.11-tkinter · amzn 2023 | 3.11.6-1.amzn2023.0.5 | ALAS2023-2024-788 | Dec 5, 2024 |
| python3.12 · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.12-debug · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.12-devel · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.12-idle · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.12-libs · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.12-test · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.12-tkinter · RHEL 9 | 0:3.12.5-2.el9 | RHSA-2024:9190 | Nov 12, 2024 |
| python3.8 · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | python3.8 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| python3.8-examples · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | python3.8-examples 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| python3.8-full · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | python3.8-full 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| python3.8-minimal · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | python3.8-minimal 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| python3.8-venv · Ubuntu 20.04 LTS (focal) | 3.8.10-0ubuntu1~20.04.11 | python3.8-venv 3.8.10-0ubuntu1~20.04.11 | Jun 17, 2024 |
| python3.9-debuginfo · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python3.9-debugsource · amzn 2023 | 3.9.16-1.amzn2023.0.9 | ALAS2023-2024-699 | Aug 1, 2024 |
| python311 · opensuse-leap 15.6 | 3.11.9-150600.3.3.1 | SUSE-SU-2025:02089-1 | Jun 24, 2025 |
| python311 · sles 15.6 | 3.11.9-150600.3.3.1 | SUSE-SU-2025:02089-1 | Jun 24, 2025 |
| python311-core · opensuse-leap 15.6 | 3.11.9-150600.3.3.1 | SUSE-SU-2025:02089-1 | Jun 24, 2025 |
| python311-core · sles 15.6 | 3.11.9-150600.3.3.1 | SUSE-SU-2025:02089-1 | Jun 24, 2025 |
| python311-documentation · opensuse-leap 15.6 | 3.11.9-150600.3.3.1 | SUSE-SU-2025:02089-1 | Jun 24, 2025 |
| python312 · opensuse-leap 15.6 | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 | Jul 22, 2024 |
| python312 · sles 15.6 | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 | Jul 22, 2024 |
| python312-core · opensuse-leap 15.6 | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 | Jul 22, 2024 |
| python312-core · sles 15.6 | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 | Jul 22, 2024 |
| python312-documentation · opensuse-leap 15.6 | 3.12.4-150600.3.3.1 | SUSE-SU-2024:2572-1 | Jul 22, 2024 |
| python39 · opensuse-leap 15.6 | 3.9.19-150300.4.46.1 | SUSE-SU-2024:2280-1 | Jul 2, 2024 |
| python39-core · opensuse-leap 15.6 | 3.9.19-150300.4.46.1 | SUSE-SU-2024:2280-1 | Jul 2, 2024 |
| python39-documentation · opensuse-leap 15.6 | 3.9.19-150300.4.46.1 | SUSE-SU-2024:2280-1 | Jul 2, 2024 |
| No fix yet | |||
| Python 2 (Windows apps) | No fix yet | no-fix | n/a |
| Python 3.10 (Windows apps) | No fix yet | no-fix | n/a |
| Python 3.5 (Windows apps) | No fix yet | no-fix | n/a |
| Python 3.6 (Windows apps) | No fix yet | no-fix | n/a |
| Python 3.7 (Windows apps) | No fix yet | no-fix | n/a |
| Python 3.8 (Windows apps) | No fix yet | no-fix | n/a |
| Python 3.9 (Windows apps) | No fix yet | no-fix | n/a |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.