CVE-2024-5642: python software foundation cpython
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.
Advisory lineage
Upstream 0 · Downstream 6 · Related 5Timeline
- 27-06-2024PublishedVulnerability first disclosed.
- 31-07-2026Last 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- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
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
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo 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- mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/Vendor AdvisoryREPORTAdvisory
Show all 18 references
- github.com/python/cpythonPACKAGE