Intel

AIKIDO-2025-10054

pip is vulnerable to Arbitrary Code Execution

Arbitrary Code Execution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

60

Medium Risk

This Affects:

Pythonpip
24.1.0 - 24.3.1
Fixed in 25.0.0

TL;DR

Affected versions of this package are affected by a design flaw when handling lazy imports that allow a malicious .whl file to overwrite critical modules, such as pip/_internal/self_outdated_check.py, during installation. When pip dynamically imports the modified module, the rogue code executes, enabling arbitrary code execution. An attacker could exploit this vulnerability to force systems to install untrusted packages or execute malicious code.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pip is vulnerable to Arbitrary Code Execution in versions 24.1.0 - 24.3.1.

How to fix this

Upgrade the pip library to the patch version.