Improper Input Validation Affecting python-libs package, versions <0:2.7.18-1.amzn2.0.10


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.49% (65th 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-AMZN2-PYTHONLIBS-8688210
  • published5 Feb 2025
  • disclosed27 Jun 2024

Introduced: 27 Jun 2024

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

How to fix?

Upgrade Amazon-Linux:2 python-libs to version 0:2.7.18-1.amzn2.0.10 or higher.
This issue was patched in ALAS2-2025-2744.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-libs package and not the python-libs package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 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