CVE Database›CVE-2024-5642

CVE-2024-5642

python: Invalid value for OpenSSL API may cause Buffer over-read when NPN is used

Loading…

Severity

Low

Red Hat Product Security

2.7

CVSS 3.1

Review impact separately from score.

Published · June 27, 2024

Updated · March 2, 2026

Description

A vulnerability was found in Python/CPython that does not disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols(), which is an invalid value for the underlying OpenSSL API. This issue results in a buffer over-read when NPN is used. See CVE -2024-5535 for OpenSSL for more information.

Statement

This vulnerability is rated with a Low severity due to NPN not being widely used and specifying an empty list is likely uncommon in practice. Typically, a protocol name would be configured.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 2.7
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L

CWE-20 · Improper Input Validation