Arbitrary Code Injection Affecting python3-pip package, versions <0:21.3.1-2.amzn2023.0.19


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.02% (5th 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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2023-PYTHON3PIP-16737045
  • published18 May 2026
  • disclosed27 Apr 2026

Introduced: 27 Apr 2026

CVE-2026-6357  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 python3-pip to version 0:21.3.1-2.amzn2023.0.19 or higher.
This issue was patched in ALAS2023-2026-1689.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-pip package and not the python3-pip package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

pip prior to version 26.1 would run self-update check functionality after installing wheel files which required importing well-known Python modules names. These module imports were intentionally deferred to increase startup time of the pip CLI. The patch changes self-update functionality to run before wheels are installed to prevent newly-installed modules from being imported shortly after the installation of a wheel package. Users should still review package contents prior to installation.

CVSS Base Scores

version 3.1