CVE-2024-0397
published high CVSS 3.1 · 7.4Memory race condition in ssl.SSLContext certificate store methods
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.14 · 3.11.0 to < 3.11.9 · 3.12.0 to < 3.12.3 · 3.13.0a1 to < 3.13.0a5 · Other versions: unaffected | Affected | Not stated | PSF |
| python_software_foundation | — | cpython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.14 · 3.11.0 to < 3.11.9 · 3.12.0 to < 3.12.3 · 3.13.0a1 to < 3.13.0a5 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2766 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PYTHON3.8-2024-016 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-699 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-788 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | python3.11 | Advisory build | 3.11.2-6+deb12u3 | DSA-5759-1 |
| Red Hat Enterprise Linux | RHEL-9 | python-unversioned-commandnoarch | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | libpython3_6m1_0aarch64 | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| Debian | bullseye | python3.9 | Advisory build | 3.9.2-1+deb11u2 | DLA-3980-1 |
| Red Hat Enterprise Linux | RHEL-9 | python3aarch64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3ppc64le | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3s390x | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3x86_64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-develaarch64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-develi686 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-develppc64le | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-devels390x | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-develx86_64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-libsaarch64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-libsi686 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-libsppc64le | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-libss390x | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-libsx86_64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-tkinteraarch64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-tkinterppc64le | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-tkinters390x | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3-tkinterx86_64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11aarch64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11ppc64le | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11s390x | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11src | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11x86_64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debuginfoaarch64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debuginfoi686 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debuginfoppc64le | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debuginfos390x | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debuginfox86_64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debugsourceaarch64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debugsourcei686 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debugsourceppc64le | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debugsources390x | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-debugsourcex86_64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-develaarch64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-develi686 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-develppc64le | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-devels390x | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-develx86_64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-libsaarch64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-libsi686 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-libsppc64le | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-libss390x | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-libsx86_64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-tkinteraarch64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-tkinterppc64le | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-tkinters390x | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.11-tkinterx86_64 | Advisory build | 3.11.9-7.el9 | RHSA-2024:9192 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12aarch64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12ppc64le | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12s390x | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12src | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12x86_64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debuginfoaarch64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debuginfoi686 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debuginfoppc64le | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debuginfos390x | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debuginfox86_64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debugsourceaarch64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debugsourcei686 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debugsourceppc64le | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debugsources390x | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-debugsourcex86_64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-develaarch64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-develi686 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-develppc64le | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-devels390x | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-develx86_64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-libsaarch64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-libsi686 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-libsppc64le | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-libss390x | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-libsx86_64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-tkinteraarch64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-tkinterppc64le | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-tkinters390x | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.12-tkinterx86_64 | Advisory build | 3.12.5-2.el9 | RHSA-2024:9190 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9src | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debuginfoaarch64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debuginfoi686 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debuginfoppc64le | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debuginfos390x | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debuginfox86_64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debugsourceaarch64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debugsourcei686 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debugsourceppc64le | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debugsources390x | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| Red Hat Enterprise Linux | RHEL-9 | python3.9-debugsourcex86_64 | Advisory build | 3.9.21-1.el9_5 | RHSA-2024:10983 |
| SUSE / openSUSE | SLE-12-SP5 | libpython3_6m1_0ppc64le | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | libpython3_6m1_0s390x | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | libpython3_6m1_0x86_64 | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | libpython3_6m1_0-32bits390x | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | libpython3_6m1_0-32bitx86_64 | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | python36aarch64 | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | python36ppc64le | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | python36s390x | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
| SUSE / openSUSE | SLE-12-SP5 | python36x86_64 | Advisory build | 3.6.15-58.1 | SUSE-SU-2024:2274-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.14 (affected · python)3.11.0 to < 3.11.9 (affected · python)3.12.0 to < 3.12.3 (affected · python)3.13.0a1 to < 3.13.0a5 (affected · python)Default: unaffected | PSF · cna |
| python_software_foundation | cpython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.14 (affected · python)3.11.0 to < 3.11.9 (affected · python)3.12.0 to < 3.12.3 (affected · python)3.13.0a1 to < 3.13.0a5 (affected · python)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-362 CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
12- 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://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
- https://security.netapp.com/advisory/ntap-20250411-0006/
Provider assertions
3PSF · cna
Memory race condition in ssl.SSLContext certificate store methods
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b11b118bf8a8ba7894577df09f79ff30cd3a672f35331fc9e04b3a315dde03b5
- Ingested
- 23 Sep 2026, 08:16:19 UTC
- Source record
- Official CVE record