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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python3 | 3.12.3-1 | — |
| Azure Linux 2 (CBL-Mariner) | python3 | 3.9.19-3 | — |
Advisories 36
- RHSA-2024:10983 Red Hat Security Advisory: python3.9:3.9.21 security update Red Hat Security Advisories (RHSA) · Aug 19, 2026
- RHSA-2024:9192 Red Hat Security Advisory: python3.11 security update Red Hat Security Advisories (RHSA) · Aug 13, 2026
- RHSA-2024:9190 Red Hat Security Advisory: python3.12 security update Red Hat Security Advisories (RHSA) · Aug 13, 2026
- SUSE-EL-9-CLIENT-TOOLS-2024-4029 Security update for SUSE Manager Salt Bundle SUSE / openSUSE Security Updates · Jul 24, 2026
- WID-SEC-2024-1396 Python: Mehrere Schwachstellen ermöglichen Manipulation von Dateien und Umgehung von Sicherheitsmaßnahmen BSI CERT-Bund (WID) · Jul 9, 2026
- USN-6928-1 python3.10, python3.8 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2025:20154-1 Security update for python311 SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20374-1 Security update for python311 SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20025-1 Security update for python311, python-rpm-macros SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:02089-1 Security update for python311 SUSE / openSUSE Security Updates · Mar 23, 2026
- DSA-5759-1 python3.11 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3980-1 python3.9 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:14064-1 python39-3.9.19-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2280-1 Security update for python39 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14082-1 python311-3.11.9-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2274-1 Security update for python39 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2479-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4020-1 Security update for SUSE Manager Salt Bundle SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4029-1 Security update for SUSE Manager Salt Bundle SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14063-1 python38-3.8.19-3.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2249-1 Security update for python39 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:4021-1 Security update for SUSE Manager Salt Bundle SUSE / openSUSE Security Updates · Feb 4, 2026
- NCSC-2025-0382 Kwetsbaarheden verholpen in Siemens producten NCSC-NL (Netherlands) · Dec 9, 2025
- SSA-202008 SSA-202008: Multiple Vulnerabilities in Ruggedcom Rox Before V2.17.0 Siemens ProductCERT · Dec 9, 2025
- WID-SEC-2025-0225 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2025
- openSUSE-SU-2024:14066-1 python310-3.10.14-2.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- openSUSE-SU-2024:14295-1 python312-3.12.5-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
- SUSE-SU-2024:2572-1 Security update for python312 SUSE / openSUSE Security Updates · May 2, 2025
- ALAS2-2025-2766 Moderate: python3 security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Feb 25, 2025
- NCSC-2025-0023 Kwetsbaarheden verholpen in Oracle PeopleSoft NCSC-NL (Netherlands) · Jan 22, 2025
- NCSC-2025-0021 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Jan 22, 2025
- ALAS2023-2024-788 Moderate: python3.11 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Dec 16, 2024
- NCSC-2024-0339 Kwetsbaarheden verholpen in Microsoft Mariner NCSC-NL (Netherlands) · Aug 13, 2024
- ALAS2023-2024-699 Moderate: python3.9 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 6, 2024
- NCSC-2024-0291 Kwetsbaarheden verholpen in Oracle Database Server NCSC-NL (Netherlands) · Jul 17, 2024
- WID-SEC-2024-1645 Oracle Database Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 16, 2024
References
- https://github.com/python/cpython/issues/114572 issue-tracking
- https://github.com/python/cpython/pull/114573 patch
- https://mail.python.org/archives/list/security-announce@python.org/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/ vendor-advisory
- https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d patch
- https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524 patch
- https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e patch
- https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286 patch
- https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa patch
- https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab patch
- http://www.openwall.com/lists/oss-security/2024/06/17/2