Arbitrary Code Execution in python-pip

python-pip Updated 02 Oct 2025

Summary

06/08/2013
N/A
Yes i
Unrated
Not published

CVE-2013-1629: pip before 1.3 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on package contents, which allows man-in-the-middle attackers to execute arbitrary code via a crafted response... Affects python-pip versions < 1.3.1-1. Fixed in 1.3.1-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

python-pip is a package management system used to install and manage software packages written in Python. It retrieves packages from the PyPI repository using HTTP. However, prior to version 1.3, it did not perform integrity checks on package contents, making it vulnerable to man-in-the-middle attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2013-1629, allows attackers to execute arbitrary code by providing a crafted response during a 'pip install' operation. This can lead to unauthorized access, data breaches, and potential compromise of the entire system.

How To Fix

Minimum fixed version

1.3.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in python-pip allows for arbitrary code execution, which can have severe consequences for the affected system. It is crucial to upgrade to version 1.3.1-1 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for python-pip →

Share this vulnerability

FAQ

python-pip is a package management system for Python.

The PyPI repository is the official repository for Python packages.

A man-in-the-middle attack is when an attacker intercepts communication between two parties without their knowledge.

Arbitrary code execution refers to the ability to run any code on a system, potentially leading to unauthorized access or control.

This vulnerability can lead to unauthorized access, data breaches, and compromise of the system.

Related vulnerabilities

Recent vulnerabilities recorded for python-pip.

How To Fix

Minimum fixed version

1.3.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback