CVE-2013-1888: Vulnerability in pip Package

pip Updated 02 Oct 2025

Summary

17/08/2013
Yes i
Moderate
6.2

CVE-2013-1888: pip before 1.3 allows local users to overwrite arbitrary files via a symlink attack on a file in the /tmp/pip-build temporary directory. Affects pip versions < 1.3. Fixed in 1.3. 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

The pip package is a package management system used to install and manage software packages written in Python. It is a widely used tool in the Python ecosystem and is responsible for resolving dependencies and installing packages from the Python Package Index (PyPI). However, prior to version 1.3, pip was susceptible to a symlink attack on files in the temporary directory (/tmp/pip-build), allowing local users to overwrite arbitrary files.

Vulnerability Detail

The vulnerability (CVE-2013-1888) in pip before version 1.3 allowed local users to exploit a symlink attack on files in the /tmp/pip-build temporary directory. By creating a symbolic link to a file in the temporary directory, an attacker could overwrite arbitrary files, potentially leading to unauthorized access, data corruption, or privilege escalation. This vulnerability posed a significant security risk to systems using pip versions prior to 1.3.

How To Fix

Latest published version: 26.2.2 as of 22 Oct 2026

pip install --upgrade "pip==26.2.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3

This is the first release that contains the fix.

pip install --upgrade "pip==1.3"

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. However, users can mitigate the risk by ensuring that the /tmp/pip-build directory is properly secured and not accessible by unauthorized users. Additionally, regular system updates and patching can help protect against potential symlink attacks.

Conclusion

The vulnerability in pip versions prior to 1.3 allowed local users to exploit a symlink attack on files in the /tmp/pip-build temporary directory. To mitigate this vulnerability, it is recommended to upgrade pip to version 1.3 or later. Regular system updates and securing the /tmp/pip-build directory can also help protect against potential symlink attacks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pip →

Share this vulnerability

FAQ

The vulnerability allows local users to overwrite arbitrary files, which can lead to unauthorized access, data corruption, or privilege escalation.

Versions of pip prior to 1.3 are affected by this vulnerability.

No, this vulnerability can only be exploited by local users with access to the system.

There is no known public exploit for this vulnerability at the time of this report.

There are no reported incidents related to this vulnerability at the time of this report.

Related vulnerabilities

Recent vulnerabilities recorded for pip.

How To Fix

Latest published version: 26.2.2 as of 22 Oct 2026

pip install --upgrade "pip==26.2.2"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.3

This is the first release that contains the fix.

pip install --upgrade "pip==1.3"

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