6.5

CVE-2024-5642: python software foundation cpython

CVSS: 6.5v3.1MediumDeferred
AliasesSUSE-SU-2024:3351-1SUSE-SU-2024:3353-1UBUNTU-CVE-2024-5642
Published 27-06-2024Last modified 31-07-2026

Vulnerability summary

CVE-2024-5642 is a medium (CVSS 6.5) vulnerability in python software foundation cpython. EPSS estimates a 0.74% chance of exploitation in the next 30 days, higher than 53.8% of scored vulnerabilities.

Overall risk
26/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.74%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 6 · Related 5

Timeline

  1. 27-06-2024
    PublishedVulnerability first disclosed.
  2. 31-07-2026
    Last modifiedVulnerability information updated.

Description

CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). 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 metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.74%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

0.00 pp

From 0.74% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.74%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Suse7 products
  • python3-core&distro=SUSE Linux Enterprise Micro 5.1< 3.6.15-150000.3.158.1
  • python36-core&distro=SUSE Linux Enterprise Server 12 SP5< 3.6.15-64.1
  • python36-core&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 3.6.15-64.1
  • python36-core&distro=SUSE Linux Enterprise Software Development Kit 12 SP5< 3.6.15-64.1
  • python36&distro=SUSE Linux Enterprise Server 12 SP5< 3.6.15-64.1
Ubuntu4 products
  • python2.7All versions (No fix recorded)
  • python3.4All versions (No fix recorded)
  • python3.5All versions (No fix recorded)
  • python3.9All versions (No fix recorded)
Chainguard1 product
  • python-3.9< 3.9.25-r0
Debian1 product
  • pypy3< 7.3.10+dfsg-1
Python software foundation1 product
  • cpython< 3.9.24 | ≥ 3.10.0a1, < 3.10.0b1

5 vendors · 14 products

References

18 links
Show all 18 references