Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-5642

published medium CVSS 3.1 · 6.5

Buffer overread when using an empty list with SSLContext.set_npn_protocols()

Published
27 Jun 2024, 21:05:31 UTC
Updated
31 Jul 2026, 14:06:47 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Python Software Foundation — CPython0 to < 3.9.24 · 3.10.0a1 to < 3.10.0b1 · Other versions: unaffected Affected Not stated PSF
Amazon Linux AL2 Release evaluationALAS2-2025-2743 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2-2025-2744 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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).

en · PSF · cna

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.5 / 10
Severity
medium
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Python Software Foundation CPython 0 to < 3.9.24 (affected · python)3.10.0a1 to < 3.10.0b1 (affected · python)Default: unaffected PSF · cna

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

8

Provider assertions

3

PSF · cna

Buffer overread when using an empty list with SSLContext.set_npn_protocols()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
d219c41f929495c1b4c57c965194f499545db826ce9d680bc32828b5057446d7
Ingested
23 Sep 2026, 08:32:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected