ADVISORIES

Vulnerability

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 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).

25 advisories report this vulnerability, across 12 ecosystems.

Advisories in SUSE

  • SUSE-SU-2024:3076-1

    Security update for python39

    CVE-2024-5642CVE-2024-6923 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2024:3351-1

    Security update for python3

    CVE-2024-5642 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3353-1

    Security update for python36

    CVE-2024-5642 SUSE Updated 4 February 2026
  • SUSE-SU-2024:3470-1

    Security update for python3

    CVE-2024-5642CVE-2024-6232CVE-2024-6923CVE-2024-7592 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-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 OpenSSL API. This results in a buffer over-read when NPN is used…

    Moderate CVE-2024-5642 SUSE Updated 29 October 2026

References