CVEfocus › CVE database › CVE-2018-20225

CVE-2018-20225

CVSS 7.8 HighEPSS 1.8% (higher than 79% of CVEs)Published 2020-05-08Updated 2026-04-15Assigner: mitre

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

CWE-20

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fix pending
7Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04python-pipFix pendingUBUNTU-CVE-2018-20225
Ubuntu 18.04python-pipFix pendingUBUNTU-CVE-2018-20225
Ubuntu 16.04python-pipWill not fix
This works as per the documentation, and this CVE has been disputed as being a security issue. There is no fix for this issue available fom pip developers. We…
UBUNTU-CVE-2018-20225
Ubuntu 14.04python-pipFix pendingUBUNTU-CVE-2018-20225
Red Hat Enterprise Linux 8platform-python-pipWill not fix
Will not fix
Red Hat Enterprise Linux 8python-pipWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pipWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-pip-wheelWill not fix
Will not fix
Red Hat Enterprise Linux 7python-pipWill not fix
Will not fix
Red Hat Enterprise Linux 7python3-pipWill not fix
Will not fix

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.