VDB

CVE-2024-0397

CVE-2024-0397 PUBLISHED CVSS 7.4 HIGH

Memory race condition in ssl.SSLContext certificate store methods

Reported by psf · Published June 17, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-libsAmazon Linux3.9.16-1.amzn2023.0.9, 3.7.16-1.amzn2.0.13
python3-tkinterAmazon Linux3.9.16-1.amzn2023.0.9, 3.7.16-1.amzn2.0.13
python3.11Amazon Linux3.11.6-1.amzn2023.0.5
python3-testAmazon Linux3.9.16-1.amzn2023.0.9, 3.7.16-1.amzn2.0.13
python3.11-testAmazon Linux3.11.6-1.amzn2023.0.5
python3.11-libsAmazon Linux3.11.6-1.amzn2023.0.5
python3-develAmazon Linux3.9.16-1.amzn2023.0.9, 3.7.16-1.amzn2.0.13
python3.11-develAmazon Linux3.11.6-1.amzn2023.0.5
python3-idleAmazon Linux3.9.16-1.amzn2023.0.9
pythonBitnami3.12.3, 3.11.9, 3.10.14, 3.9.20, 3.8.20
python3Amazon Linux3.9.16-1.amzn2023.0.9, 3.7.16-1.amzn2.0.13
python-3.8Chainguard3.8.19-r1

27 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
Python Software FoundationCPython0, 3.9.0, 3.10.0
Python Software FoundationCPython3.13.0a1, 0, 3.9.0
python_software_foundationcpython0, 3.9.0, 3.10.0

Timeline

  • Feb 16, 2024 Fix PR Merged
  • Jun 17, 2024 CVE Published
  • Jun 18, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
  • Apr 11, 2025 PoC Published
  • Mar 17, 2026 Security Advisory (25 in total, the first dated here)
  • Aug 10, 2026 Distribution Patch (21 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-0397
vulnetix vdb fixes CVE-2024-0397

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-0397/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›