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

  • ALAS2-2025-2743

    Amazon Linux 2 2017.12 - ALAS2-2025-2743: medium priority package update for python3

    Medium CVE-2024-5642 Amazon Linux Updated 4 February 2025
  • ALAS2-2025-2744

    Amazon Linux 2 2017.12 - ALAS2-2025-2744: medium priority package update for python

    Medium CVE-2024-5642 Amazon Linux Updated 4 February 2025
  • ALSA-2025:23342

    Moderate: python3.9 security update

    CVE-2024-5642CVE-2025-6069CVE-2025-6075CVE-2025-8291 AlmaLinux Updated 29 October 2026
  • ALSA-2025:23530

    Important: python39:3.9 security update

    CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 AlmaLinux Updated 29 October 2026
  • CGA-5fx2-wjp3-8fvc
    CVE-2024-5642 Chainguard Updated 5 November 2026
  • CGA-j978-3qf9-6mgg
    CVE-2024-5642 Chainguard Updated 5 November 2026
  • CNA-CVE-2024-5642

    Buffer overread when using an empty list with SSLContext.set_npn_protocols()

    CVE-2024-5642 Python Updated 31 July 2026
  • DEBIAN-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…

    CVE-2024-5642 Debian Updated 2 November 2026
  • ELSA-2025-23342

    ELSA-2025-23342: python3.9 security update (MODERATE)

    Moderate CVE-2024-5642CVE-2025-6069CVE-2025-6075CVE-2025-8291 Oracle Linux Updated 18 December 2025
  • ELSA-2025-23530

    ELSA-2025-23530: python39:3.9 security update (IMPORTANT)

    Important CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 Oracle Linux Updated 23 December 2025
  • OESA-2025-2637

    python3 security update

    Medium CVE-2024-5642 openEuler Updated 18 August 2026
  • OESA-2025-2638

    python3 security update

    Medium CVE-2024-5642 openEuler Updated 18 August 2026
  • RHSA-2025:23342

    Red Hat Security Advisory: python3.9 security update

    CVE-2024-5642CVE-2025-6069CVE-2025-6075CVE-2025-8291 Red Hat Updated 13 November 2026
  • RHSA-2025:23530

    Red Hat Security Advisory: python39:3.9 security update

    CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 Red Hat Updated 24 November 2026
  • RHVEX-CVE-2024-5642

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

    Low CVE-2024-5642 Red Hat Updated 7 November 2026
  • RLSA-2025:23342

    Moderate: python3.9 security update

    CVE-2024-5642CVE-2025-6069CVE-2025-6075CVE-2025-8291 Rocky Linux Updated 19 December 2025
  • RLSA-2025:23530

    Important: python39:3.9 security update

    CVE-2024-11168CVE-2024-5642CVE-2024-9287CVE-2025-0938 Rocky Linux Updated 18 December 2025
  • 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
  • UBUNTU-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…

    CVE-2024-5642 Ubuntu Updated 8 September 2026
  • openSUSE-SU-2024:14253-1

    python39-3.9.19-6.1 on GA media

    CVE-2024-5642CVE-2024-6923 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14256-1

    python38-3.8.19-7.1 on GA media

    CVE-2024-5642CVE-2024-6923 openSUSE Updated 4 February 2026

References