Intel

AIKIDO-2025-10054

pip is vulnerable to Arbitrary Code Execution

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 28, 2025
January 28, 2025

60

CVE Score

Medium

Arbitrary Code Execution

Are you affected? Scan for Free

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.

How do I fix this?

Upgrade the pip library to the patch version.

Who does this affect?

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

Package

Versions

24.1.0 - 24.3.1

Fixed in 25.0.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea