Arbitrary Code Injection Affecting pip package, versions [22.1b1, 26.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd 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-PYTHON-PIP-16316401
  • published28 Apr 2026
  • disclosed27 Apr 2026
  • creditDamian Shaw

Introduced: 27 Apr 2026

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

How to fix?

Upgrade pip to version 26.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection in the self-version check logic. An attacker can achieve arbitrary code execution by overwriting pip’s modules during a pip install operation, which are later imported at the end of command execution for the version check.

CVSS Base Scores

version 4.0
version 3.1