cbcvebase.
CVE-2024-0397
published 2024-06-17

CVE-2024-0397: 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…

PriorityP341high7.4CVSS 3.1
AVNACHPRNUINSUCHINAH
EPSS
0.81%
52.8th percentile
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.

Affected

19 ranges
VendorProductVersion rangeFixed in
debianpypy3< pypy3 7.3.16+dfsg-1 (forky)pypy3 7.3.16+dfsg-1 (forky)
debianpython2.7< pypy3 7.3.16+dfsg-1 (forky)pypy3 7.3.16+dfsg-1 (forky)
debianpython3.11< pypy3 7.3.16+dfsg-1 (forky)pypy3 7.3.16+dfsg-1 (forky)
debianpython3.13< pypy3 7.3.16+dfsg-1 (forky)pypy3 7.3.16+dfsg-1 (forky)
debianpython3.9< pypy3 7.3.16+dfsg-1 (forky)pypy3 7.3.16+dfsg-1 (forky)
msrcazl3_python3_3.12.0-4_on_azure_linux_3.0
msrcazl3_python3_3.12.3-1_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_python3_3.9.19-13_on_cbl_mariner_2.0
msrccbl2_python3_3.9.19-3_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
python_software_foundationcpython< 3.8.203.8.20
python_software_foundationcpython>= 3.10.0 < 3.10.143.10.14
python_software_foundationcpython>= 3.11.0 < 3.11.93.11.9
python_software_foundationcpython>= 3.12.0 < 3.12.33.12.3
python_software_foundationcpython>= 3.13.0a1 < 3.13.0a53.13.0a5
python_software_foundationcpython>= 3.9.0 < 3.9.203.9.20

CVSS provenance

nvdv3.17.4HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
osv7.4HIGH
vendor_debian7.4HIGH
vendor_msrc7.4HIGH
vendor_redhat7.4HIGH
vendor_ubuntu7.4HIGH
vendor_oracle4.3HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.