7.4
HIGH
CVE-2024-0397
Apache Python SSL Certificate Directory Memory Race Condition
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.

INFO

Published Date :

June 17, 2024, 4:15 p.m.

Last Modified :

July 3, 2024, 1:44 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.2

Exploitability Score :

2.2
Affected Products

The following products are affected by CVE-2024-0397 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python python

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-0397 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-0397 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 03, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-362
    Added CVSS V3.1 CISA-ADP AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
  • CVE Modified by [email protected]

    Jun. 17, 2024

    Action Type Old Value New Value
    Added Reference Python Software Foundation http://www.openwall.com/lists/oss-security/2024/06/17/2 [No types assigned]
  • CVE Received by [email protected]

    Jun. 17, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Python Software Foundation https://github.com/python/cpython/issues/114572 [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/pull/114573 [No types assigned]
    Added Reference Python Software Foundation https://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/ [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524 [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286 [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa [No types assigned]
    Added Reference Python Software Foundation https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-0397 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-0397 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability