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 Red Hat

  • RHSA-2025:23342

    Red Hat Security Advisory: python3.9 security update

    CVE-2024-5642CVE-2025-6069CVE-2025-6075CVE-2025-8291 Red Hat Updated 26 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 26 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 26 November 2026

References