---
title: "CVE-2024-0397: Python Software Foundation CPython Vulnerability"
publisher: SpecStream
source: "CVE Program (CVEProject cvelistV5)"
source_url: "https://github.com/CVEProject/cvelistV5"
---

# CVE-2024-0397: Python Software Foundation CPython Vulnerability

SpecStream dataset, built from [CVE Program (CVEProject cvelistV5)](https://github.com/CVEProject/cvelistV5), updated December 6, 2026.

CVE-2024-0397 is a published software vulnerability affecting Python Software Foundation CPython. CVSS base score: 7.4 (HIGH). Published June 17, 2024 by PSF. 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.

[CVE Vulnerabilities](/data/cve)

SpecStream is the live web data engine for teams and agents.

- CVE ID: CVE-2024-0397
- Status: Published
- Affected vendor: Python Software Foundation
- Affected product: CPython
- Assigner CNA: PSF
- Published date: June 17, 2024
- Last updated: November 3, 2025
- CVSS base score: 7.4 (HIGH)
- CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
- Weakness (CWE): CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

## Vulnerability data and live monitoring

Query CVE feeds, affected software packages and severity updates through the SpecStream API or export structured CSV files.

- [https://specstream.ai/data/cve](https://specstream.ai/data/cve)
- [https://specstream.ai/signup?src=cve-vulnerabilities](https://specstream.ai/signup?src=cve-vulnerabilities)

CVE Terms of Use (Public Vulnerability Records).

## Access via API, MCP, or CSV

Query live web and register data via the SpecStream Search API ($1 per 1,000 fast searches), Extract API ($0.80 per 1,000 Markdown pages), or MCP server (`npx -y @specstream/mcp-server`). Start with [$2 free API credit (no card)](https://specstream.ai/signup) or unlock 5,000 CSV rows/mo plus $49 API credit with the [Monthly Pro Pass ($49/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter).

Free to quote with credit and a link. Copying in bulk needs a [data licence](https://specstream.ai/data/licence).

## Business lists in the United States

- [Live and raw food restaurants in the United States](https://specstream.ai/data/businesses/live-and-raw-food-restaurants/united-states)
- [Empanada restaurants in the United States](https://specstream.ai/data/businesses/empanada-restaurants/united-states)
- [B2B outdoor advertising companies in the United States](https://specstream.ai/data/businesses/b2b-outdoor-advertising-companies/united-states)
- [Speech therapy clinics in the United States](https://specstream.ai/data/businesses/speech-therapy-clinics/united-states)
- [Medical transportation companies in the United States](https://specstream.ai/data/businesses/medical-transportation-companies/united-states)
- [Farm insurance companies in the United States](https://specstream.ai/data/businesses/farm-insurance-companies/united-states)
