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 advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-pip (PTS)buster18.1-5vulnerable
bullseye20.3.4-4+deb11u1vulnerable
bookworm, sid22.3+dfsg-1vulnerable

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