High severity7.4OSV Advisory· Published Jun 17, 2024· Updated Apr 15, 2026
CVE-2024-0397
CVE-2024-0397
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
113v0.9.8, v0.9.9, v1.0.1, …+ 1 more
- (no CPE)range: v0.9.8, v0.9.9, v1.0.1, …
- (no CPE)range: <3.10.14, <3.11.9, <3.12.3, <3.13.0a5
- osv-coords111 versionspkg:apk/chainguard/python-3.8pkg:apk/chainguard/python-3.8-basepkg:apk/chainguard/python-3.8-base-devpkg:apk/chainguard/python-3.8-defaultpkg:apk/chainguard/python-3.8-devpkg:apk/chainguard/python-3.8-docpkg:apk/chainguard/python-3.9pkg:apk/chainguard/python-3.9-basepkg:apk/chainguard/python-3.9-base-devpkg:apk/chainguard/python-3.9-defaultpkg:apk/chainguard/python-3.9-devpkg:apk/chainguard/python-3.9-docpkg:bitnami/libpythonpkg:bitnami/pythonpkg:bitnami/python-minpkg:rpm/opensuse/python310&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python311-core&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python311&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python311&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python311-documentation&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python312-core&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python312&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python312&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python312-documentation&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python38&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python39-core&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python39-core&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python39&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python39&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python39&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python39-documentation&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python39-documentation&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python3-core&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python3-core&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python3-core&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/python3-core&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/python3&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python3&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/python3&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/python3&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/python3-documentation&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/python3-documentation&distro=openSUSE%20Leap%2015.6pkg:rpm/suse/python311-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/python311-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6pkg:rpm/suse/python311-core&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/python311-core&distro=SUSE%20Linux%20Micro%206.1pkg:rpm/suse/python311&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6pkg:rpm/suse/python311&distro=SUSE%20Linux%20Micro%206.0pkg:rpm/suse/python311&distro=SUSE%20Linux%20Micro%206.1pkg:rpm/suse/python312-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6pkg:rpm/suse/python312&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6pkg:rpm/suse/python36-core&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/python36-core&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/python36-core&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/python36&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/python36&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/python39-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP5pkg:rpm/suse/python39&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2015%20SP5pkg:rpm/suse/python3-core&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP6pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/python3-core&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/python3-core&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/python3-core&distro=SUSE%20Manager%20Server%204.3pkg:rpm/suse/python3&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/python3&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/python3&distro=SUSE%20Manager%20Proxy%204.3pkg:rpm/suse/python3&distro=SUSE%20Manager%20Server%204.3pkg:rpm/suse/saltbundlepy-core&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-cryptography&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-docker&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-idna&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-passlib&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-passlib-test&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-setuptools&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-urllib3&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/saltbundlepy-zipp&distro=SUSE:EL-9:Update:Products:SaltBundle:Updatepkg:rpm/suse/venv-salt-minion&distro=SUSE%20Manager%20Client%20Tools%2012pkg:rpm/suse/venv-salt-minion&distro=SUSE%20Manager%20Client%20Tools%2015pkg:rpm/suse/venv-salt-minion&distro=SUSE%20Manager%20Client%20Tools%20for%20RHEL,%20Liberty%20and%20Clones%209-CLIENT-TOOLSpkg:rpm/suse/venv-salt-minion&distro=SUSE%20Manager%20Client%20Tools%20for%20SLE%20Micro%205pkg:rpm/suse/venv-salt-minion&distro=SUSE%20Manager%20Proxy%20Module%204.3pkg:rpm/suse/venv-salt-minion&distro=SUSE%20Manager%20Server%20Module%204.3pkg:rpm/suse/venv-salt-minion&distro=SUSE:EL-9:Update:Products:SaltBundle:Update
< 3.8.19-r1+ 110 more
- (no CPE)range: < 3.8.19-r1
- (no CPE)range: < 3.8.19-r1
- (no CPE)range: < 3.8.19-r1
- (no CPE)range: < 3.8.19-r1
- (no CPE)range: < 3.8.19-r1
- (no CPE)range: < 3.8.19-r1
- (no CPE)range: < 3.9.19-r2
- (no CPE)range: < 3.9.19-r2
- (no CPE)range: < 3.9.19-r2
- (no CPE)range: < 3.9.19-r2
- (no CPE)range: < 3.9.19-r2
- (no CPE)range: < 3.9.19-r2
- (no CPE)range: < 3.8.20
- (no CPE)range: < 3.8.20
- (no CPE)range: < 3.8.20
- (no CPE)range: < 3.10.14-2.1
- (no CPE)range: < 3.11.9-150600.3.3.1
- (no CPE)range: < 3.11.9-150600.3.3.1
- (no CPE)range: < 3.11.9-3.1
- (no CPE)range: < 3.11.9-150600.3.3.1
- (no CPE)range: < 3.12.4-150600.3.3.1
- (no CPE)range: < 3.12.4-150600.3.3.1
- (no CPE)range: < 3.12.5-1.1
- (no CPE)range: < 3.12.4-150600.3.3.1
- (no CPE)range: < 3.8.19-3.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.9.19-2.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.11.9-150600.3.3.1
- (no CPE)range: < 3.11.9-150600.3.3.1
- (no CPE)range: < 3.11.8-3.1
- (no CPE)range: < 3.11.12-slfo.1.1_1.1
- (no CPE)range: < 3.11.9-150600.3.3.1
- (no CPE)range: < 3.11.8-3.1
- (no CPE)range: < 3.11.12-slfo.1.1_1.1
- (no CPE)range: < 3.12.4-150600.3.3.1
- (no CPE)range: < 3.12.4-150600.3.3.1
- (no CPE)range: < 3.6.15-58.1
- (no CPE)range: < 3.6.15-58.1
- (no CPE)range: < 3.6.15-58.1
- (no CPE)range: < 3.6.15-58.1
- (no CPE)range: < 3.6.15-58.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.9.19-150300.4.46.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150000.3.150.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.1
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150000.3.150.1
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.6.15-150300.10.65.2
- (no CPE)range: < 3.11.9-1.26.1
- (no CPE)range: < 3.3.2-1.18.1
- (no CPE)range: < 3.11.9-1.26.1
- (no CPE)range: < 7.0.0-1.8.1
- (no CPE)range: < 3.4-1.9.2
- (no CPE)range: < 1.7.4-1.3.1
- (no CPE)range: < 1.7.4-1.3.1
- (no CPE)range: < 67.7.2-1.12.1
- (no CPE)range: < 2.0.7-1.12.1
- (no CPE)range: < 3.15.0-1.9.2
- (no CPE)range: < 3006.0-3.65.1
- (no CPE)range: < 3006.0-150000.3.67.1
- (no CPE)range: < 3006.0-1.47.1
- (no CPE)range: < 3006.0-150000.3.67.1
- (no CPE)range: < 3006.0-150000.3.67.1
- (no CPE)range: < 3006.0-150000.3.67.1
- (no CPE)range: < 3006.0-1.47.1
Patches
Vulnerability mechanics
References
12- www.openwall.com/lists/oss-security/2024/06/17/2nvd
- github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589dnvd
- github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524nvd
- github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002envd
- github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286nvd
- github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faanvd
- github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766abnvd
- github.com/python/cpython/issues/114572nvd
- github.com/python/cpython/pull/114573nvd
- lists.debian.org/debian-lts-announce/2024/12/msg00000.htmlnvd
- mail.python.org/archives/list/security-announce@python.org/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/nvd
- security.netapp.com/advisory/ntap-20250411-0006/nvd
News mentions
0No linked articles in our index yet.