CVE-2024-0397

Memory race condition in ssl.SSLContext certificate store methods

Published Jun 17, 2024 CVSS 3.1 · 7.4 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3980-1 python3.9 security update
Debian DSA Debian DSA DSA-5759-1 python3.11 security update
EUVD EUVD EUVD-2024-16193 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.
Ubuntu USN Ubuntu USN USN-6928-1 Python vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00393}

epss

{'score': 0.00401}

Type Values Removed Values Added
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/a:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Type Values Removed Values Added
First Time appeared Python Software Foundation
Python Software Foundation cpython
CPEs cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:*
Vendors & Products Python Software Foundation
Python Software Foundation cpython
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Nov 3, 2025, 9:50 PM
Reserved
Jan 10, 2024, 2:05 PM
Status
Deferred
Published
Jun 17, 2024, 4:15 PM
Modified
Jun 17, 2026, 6:53 AM
Severity
Low
Public date
Jun 17, 2024, 12:00 AM