CVE-2018-20225

NameCVE-2018-20225
Description** DISPUTED ** An issue was discovered in pip (all versions) because it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index. This only affects use of the --extra-index-url option, and exploitation requires that the package does not already exist in the public index (and thus the attacker can put the package there with an arbitrary version number). NOTE: it has been reported that this is intended functionality and the user is responsible for using --extra-index-url securely.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-pip (PTS)stretch9.0.1-2+deb9u1vulnerable
stretch (security)9.0.1-2+deb9u2vulnerable
buster18.1-5vulnerable
bullseye, sid20.1.1-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-pipsource(unstable)(unfixed)unimportant

Notes

https://cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html
pip is inherently affected by malicious packages, use packages from Debian instead :-)

Search for package or bug name: Reporting problems