CVE-2013-1888 Improper Link Resolution Before File Access in pip

Low 2.1 Published Updated

Local attackers can overwrite arbitrary files via symlink attacks in pip's temporary build directory, potentially compromising system integrity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2013-1888?

CVE-2013-1888 is a low-severity path traversal vulnerability in Fedoraproject Fedora, published on 16 Aug 2013. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-59

Which versions are affected by CVE-2013-1888?

3 open source packages ship an affected version, including pip. It affects 2 products.

PackageAffectedFixed in
pip PyPIAll versions1.3
pip PyPIAll versions1.3
pip PyPIAll versions1.3

Products include Fedoraproject Fedora, Pypa Pip.

How do I fix CVE-2013-1888?

Upgrade pip to 1.3 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2013-1888 being exploited?

There is no known exploitation of CVE-2013-1888 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as GHSA-4gv5-qhvr-36vv, PYSEC-2013-9.

Is CVE-2013-1888 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free