Race Condition Affecting cpython package, versions [,3.10.14)[3.12.2,3.12.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.39% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-CPYTHON-10075465
  • published8 May 2025
  • disclosed17 Jun 2024
  • creditDavid Benjamin

Introduced: 17 Jun 2024

CVE-2024-0397  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade cpython to version 3.10.14, 3.12.7 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition due to concurrent access to the SSLContext's certificate store methods cert_store_stats and get_ca_certs. An attacker can trigger a race condition by simultaneously invoking these methods during operations such as a TLS handshake when certificates are being loaded.

CVSS Base Scores

version 4.0
version 3.1