Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2024-0397

Memory race condition in ssl.SSLContext certificate store methods

High7.4EPSS 0.81%
Published
Updated
Reserved
Assigned by
PSF

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.

Scores

CVSS scores of CVE-2024-0397, by who scored it
Scored byCVSSScoreVector
CISA-ADPADP (enrichment)3.1High7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
NVDNVD · Deferred3.1High7.4CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS (exploitation in 30 days)
0.81% · top 43% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.

Weakness

Affected products

  • Python Software Foundation · CPython

    • affected < 3.8.20
    • affected 3.9.0 – < 3.9.20
    • affected 3.10.0 – < 3.10.14
    • affected 3.11.0 – < 3.11.9
    • affected 3.12.0 – < 3.12.3
    • affected 3.13.0a1 – < 3.13.0a5

References (12)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2024-0397 badge
[![CVE-2024-0397](https://trackcve.app/badge/CVE-2024-0397.svg)](https://trackcve.app/cve/CVE-2024-0397)

Record last updated .