PT-2024-6083 · Python+13 · Cpython+13

David Benjamin

+2

·

Published

2024-05-02

·

Updated

2026-04-27

·

CVE-2024-5535

CVSS v2.0

9.4

Critical

VectorAV:N/AC:L/Au:N/C:C/I:N/A:C
Name of the Vulnerable Software and Affected Versions OpenSSL versions prior to the next release (exact version not specified) CPython version 3.9 and earlier
Description The issue is related to the OpenSSL API function SSL select next proto which can cause a crash or memory contents to be sent to the peer when called with an empty supported client protocols buffer. This can result in a loss of confidentiality, with up to 255 bytes of arbitrary private data from memory being sent to the peer. The issue is typically not under attacker control and may occur by accident due to a configuration or programming error in the calling application. The SSL select next proto function is used by TLS applications that support ALPN (Application Layer Protocol Negotiation) or NPN (Next Protocol Negotiation), with NPN being older and deprecated in favor of ALPN.
Recommendations For OpenSSL versions prior to the next release, there is no information about a newer version that contains a fix for this vulnerability. For CPython version 3.9 and earlier, ensure that SSLContext.set npn protocols() is not configured with an empty list to prevent the buffer over-read issue. As a temporary workaround, consider disabling the use of NPN in favor of ALPN to minimize the risk of exploitation. Restrict access to the SSL select next proto function to prevent accidental calls with empty client protocol buffers. Avoid using the client len parameter with a value of 0 when calling the SSL select next proto function.
Note: At the moment, there is no information about a newer version that contains a fix for this vulnerability.

DoS

Out of bounds Read

Information Disclosure

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:7848
ALSA-2024:9333
ALSA-2025:1671
ALSA-2025:1673
ALT-PU-2024-12037
ALT-PU-2024-16921
ALT-PU-2024-16925
ALT-PU-2024-17181
ALT-PU-2025-1127
ALT-PU-2025-1184
AZL-42975
AZL-42988
AZL-43309
AZL-47733
AZL-78567
BDU:2024-06988
BIT-LIBPYTHON-2024-5642
BIT-PYTHON-2024-5642
BIT-PYTHON-MIN-2024-5642
CESA-2024_7848
CESA-2025_1673
CVE-2024-5535
DLA-3942-1
DLA-3942-2
INFSA-2024_7848
INFSA-2024_9333
INFSA-2025_1671
INFSA-2025_1673
JLSEC-2026-252
MGASA-2024-0247
MGASA-2024-0281
MGASA-2024-0330
OESA-2024-1879
OESA-2024-1914
OESA-2025-1288
OPENSUSE-SU-2024:14219-1
OPENSUSE-SU-2024:14220-1
OPENSUSE-SU-2024_2635-1
OPENSUSE-SU-2024_2891-1
OPENSUSE-SU-2024_2933-1
OPENSUSE-SU-2024_3019-1
OPENSUSE-SU-2024_3119-1
PSF-2024-6
RHSA-2024:7846
RHSA-2024:7847
RHSA-2024:7848
RHSA-2024:9333
RHSA-2024_7848
RHSA-2024_9333
RHSA-2025:1671
RHSA-2025:1673
RHSA-2025:3452
RHSA-2025:3666
RHSA-2025_1671
RHSA-2025_1673
RLSA-2024:7848
RLSA-2024:9333
RLSA-2025:1671
RLSA-2025:1673
SUSE-SU-2024:2635-1
SUSE-SU-2024:2761-1
SUSE-SU-2024:2891-1
SUSE-SU-2024:2909-1
SUSE-SU-2024:2927-1
SUSE-SU-2024:2931-1
SUSE-SU-2024:2933-1
SUSE-SU-2024:2953-1
SUSE-SU-2024:2989-1
SUSE-SU-2024:2991-1
SUSE-SU-2024:3019-1
SUSE-SU-2024:3119-1
SUSE-SU-2024_2635-1
SUSE-SU-2024_2891-1
SUSE-SU-2024_2909-1
SUSE-SU-2024_2927-1
SUSE-SU-2024_2931-1
SUSE-SU-2024_2933-1
SUSE-SU-2024_2989-1
SUSE-SU-2024_2991-1
SUSE-SU-2024_3019-1
SUSE-SU-2024_3119-1
SUSE-SU-2025:20014-1
USN-6937-1
USN-7894-1
USN-7894-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Cpython
Centos
Ibm Aix
Linuxmint
Mysql Server
Openssl
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu