cbcvebase.
CVE-2024-5642
published 2024-06-27

CVE-2024-5642: 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…

PriorityP335medium6.5CVSS 3.1
AVNACLPRNUINSUCLINAL
EPSS
0.74%
50.6th percentile
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

6 ranges
VendorProductVersion rangeFixed in
debianpypy3< pypy3 7.3.10+dfsg-1 (bookworm)pypy3 7.3.10+dfsg-1 (bookworm)
debianpython2.7< pypy3 7.3.10+dfsg-1 (bookworm)pypy3 7.3.10+dfsg-1 (bookworm)
debianpython3.11< pypy3 7.3.10+dfsg-1 (bookworm)pypy3 7.3.10+dfsg-1 (bookworm)
debianpython3.13< pypy3 7.3.10+dfsg-1 (bookworm)pypy3 7.3.10+dfsg-1 (bookworm)
debianpython3.9< pypy3 7.3.10+dfsg-1 (bookworm)pypy3 7.3.10+dfsg-1 (bookworm)
msrccbl2_python3_3.9.19-13_on_cbl_mariner_2.0

CVSS provenance

nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
osv9.1CRITICAL
vendor_debian9.1CRITICAL
vendor_redhat9.1CRITICAL
vendor_msrc6.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.