CVE-2018-20225

NameCVE-2018-20225
DescriptionAn 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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-pip (PTS)jessie, jessie (lts)1.5.6-5+deb8u2vulnerable
stretch (security), stretch (lts), stretch9.0.1-2+deb9u2vulnerable
buster18.1-5vulnerable
bullseye20.3.4-4+deb11u1vulnerable
bookworm23.0.1+dfsg-1vulnerable
sid, trixie24.3.1+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