Buffer Over-read Affecting cpython package, versions [,3.10.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.49% (65th 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 IDSNYK-CONAN-CPYTHON-10075471
  • published8 May 2025
  • disclosed27 Jun 2024
  • creditSeth Larson

Introduced: 27 Jun 2024

CVE-2024-5642  (opens in a new tab)
CWE-126  (opens in a new tab)

How to fix?

Upgrade cpython to version 3.10.0 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Over-read due to the improper configuration of SSLContext.set_npn_protocols. An attacker can configure an empty list as a value for NPN protocols.

Note: This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice, typically a protocol name would be configured.

CVSS Base Scores

version 4.0
version 3.1