{"answers":{"affected":"3 open source packages ship an affected version, including libpython, python and python-min.","exploited":"There is no known exploitation of CVE-2024-0397 in the wild and no public exploit code.","fix":"Upgrade libpython to a fixed version for your release line: 3.8.20, 3.9.20, 3.10.14 or 3.11.9.","what":"CVE-2024-0397 is a high-severity vulnerability in CPython, published on 17 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-0397 and fix it if it is affected.\n\nWhat it is: CVE-2024-0397 is a high-severity vulnerability in CPython, published on 17 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-0397 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- libpython (Bitnami): affected all versions; fixed in 3.8.20, 3.9.20, 3.10.14, 3.11.9, 3.12.3\n- python (Bitnami): affected all versions; fixed in 3.8.20, 3.9.20, 3.10.14, 3.11.9, 3.12.3\n- python-min (Bitnami): affected all versions; fixed in 3.8.20, 3.9.20, 3.10.14, 3.11.9, 3.12.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-0397/ (Markdown: https://insights.sbomify.com/CVE-2024-0397/index.md)","id":"CVE-2024-0397","markdown":"https://insights.sbomify.com/CVE-2024-0397/index.md","name":"CVE-2024-0397","record":{"aliases":["AZL-42784","AZL-42796","BIT-libpython-2024-0397","BIT-python-2024-0397","BIT-python-min-2024-0397","CLSA-2025-1751144408","CLSA-2025-1751145522","DEBIAN-CVE-2024-0397","GHSA-xhf3-pp4q-gxh5","PSF-2024-4","UBUNTU-CVE-2024-0397","openSUSE-SU-2024:14063-1","openSUSE-SU-2024:14064-1","openSUSE-SU-2024:14066-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Python ssl module","requires_auth":"none","summary":"A race condition in Python's ssl module can cause crashes when certificate store methods are called concurrently with certificate loading.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"PSF","cpe":[],"cvss":{"score":7.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"description":"A defect was discovered in the Python “ssl” module where there is a memory\nrace condition with the ssl.SSLContext methods “cert_store_stats()” and\n“get_ca_certs()”. The race condition can be triggered if the methods are\ncalled at the same time as certificates are loaded into the SSLContext,\nsuch as during the TLS handshake with a certificate directory configured.\nThis issue is fixed in CPython 3.10.14, 3.11.9, 3.12.3, and 3.13.0a5.","ecosystems":["Bitnami","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memory race condition in ssl.SSLContext certificate store methods","id":"CVE-2024-0397","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"race_condition","year":"2024"},"n_packages":6,"n_references":10,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2024-0398"},"packages":[{"ecosystem":"Bitnami","fixed":["3.8.20","3.9.20","3.10.14","3.11.9","3.12.3"],"introduced":["0","3.9.0","3.10.0","3.11.0","3.12.0"],"last_affected":[],"package":"libpython","purl":"pkg:bitnami/libpython","source":"BIT-libpython-2024-0397"},{"ecosystem":"Bitnami","fixed":["3.8.20","3.9.20","3.10.14","3.11.9","3.12.3"],"introduced":["0","3.9.0","3.10.0","3.11.0","3.12.0"],"last_affected":[],"package":"python","purl":"pkg:bitnami/python","source":"BIT-python-2024-0397"},{"ecosystem":"Bitnami","fixed":["3.8.20","3.9.20","3.10.14","3.11.9","3.12.3"],"introduced":["0","3.9.0","3.10.0","3.11.0","3.12.0"],"last_affected":[],"package":"python-min","purl":"pkg:bitnami/python-min","source":"BIT-python-min-2024-0397"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.10.14-2.1"],"introduced":["0"],"last_affected":[],"package":"python310","purl":"pkg:rpm/opensuse/python310\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14066-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.8.19-3.1"],"introduced":["0"],"last_affected":[],"package":"python38","purl":"pkg:rpm/opensuse/python38\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14063-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.9.19-2.1"],"introduced":["0"],"last_affected":[],"package":"python39","purl":"pkg:rpm/opensuse/python39\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14064-1"}],"prev":{"headline":"Missing Server-Side Input Validation in HTTP Parameter","id":"CVE-2024-0396"},"products":["CPython"],"published":"2024-06-17","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["Python Software Foundation"]},"summary":"A race condition in Python's ssl module can cause crashes when certificate store methods are called concurrently with certificate loading.","url":"https://insights.sbomify.com/CVE-2024-0397/"}