6.5
Medium
CVE-2024-5642 CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols() which is an…
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).
Affected products and versions
Other CVEs of CPython
The 80 CVEs of CPython →
CVE-2026-119170
Regression in FIPS enforcement of hash algorithms affecting only Python 3.14.10
8.2
High
CVE-2026-116566
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be…
5.3
Medium
CVE-2026-103995
Lenient parsing of integers for response body and chunk framing
2.0
Low
CVE-2026-115557
Python has added a denylist for known compromised certificates to the "ssl" module to ensure user safety even without…
9.4
Critical