PT-2024-36813

CVE-2024-5642

·

Published

2024-06-27

·

Updated

2026-09-11

Description by

CVSS 3.1
6.5
Medium
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Name of the Vulnerable Software and Affected Versions CPython versions 3.9 and earlier
Description The issue arises from configuring an empty list for SSLContext.set npn protocols(), which is an invalid value for the underlying OpenSSL API, resulting in a buffer over-read when NPN is used. This is considered a low-severity issue due to the limited use of NPN and the uncommon practice of specifying an empty list.
Recommendations For CPython versions 3.9 and earlier, as a temporary workaround, consider avoiding the use of an empty list for SSLContext.set npn protocols() until a patch is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploitability
Exploit
Impacts
Researchers
Vendors
Affected products
Weakness enumeration
Related identifiers
ALSA-2025:23342
ALSA-2025:23530
ALT-PU-2024-12993
ALT-PU-2024-14497
BIT-LIBPYTHON-2024-5642
BIT-PYTHON-2024-5642
BIT-PYTHON-MIN-2024-5642
CLSA-2026-1778233301
CLSA-2026-1779213441
ECHO-92BD-FC28-530B
OESA-2025-2637
OESA-2025-2638
OPENSUSE-SU-2024:14253-1
OPENSUSE-SU-2024:14256-1
OPENSUSE-SU-2024_3076-1
OPENSUSE-SU-2024_3470-1
PSF-2024-6
RHSA-2025:23342
SUSE-SU-2024:3076-1
SUSE-SU-2024_3076-1
SUSE-SU-2024:3351-1
SUSE-SU-2024:3353-1
SUSE-SU-2024_3353-1
SUSE-SU-2024:3470-1
SUSE-SU-2024_3470-1
Found an issue in the description? Have something to add? Feel free to write us 👾