CVE-2024-5642 Affecting python39:3.9/python39-packaging package, versions <0:20.4-4.module_el8.6.0+2780+a40f65e1


Severity

Recommended
high

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.74% (50th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALMALINUX8-PYTHON39-14551306
  • published23 Dec 2025
  • disclosed16 Dec 2025

Introduced: 16 Dec 2025

CVE-2024-5642  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:8 python39:3.9/python39-packaging to version 0:20.4-4.module_el8.6.0+2780+a40f65e1 or higher.
This issue was patched in ALSA-2025:23530.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python39:3.9/python39-packaging package and not the python39:3.9/python39-packaging package as distributed by AlmaLinux. See How to fix? for AlmaLinux:8 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1