Arbitrary Code Injection Affecting python2-pip package, versions <0:20.2.2-1.amzn2.0.17


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.14% (4th 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-PYTHON2PIP-16881578
  • published27 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:2 python2-pip to version 0:20.2.2-1.amzn2.0.17 or higher.
This issue was patched in ALAS2-2026-3317.

NVD Description

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