CVE-2018-20225
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
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | python-pip | Fix pending | UBUNTU-CVE-2018-20225 | |
| Ubuntu 18.04 | python-pip | Fix pending | UBUNTU-CVE-2018-20225 | |
| Ubuntu 16.04 | python-pip | Will 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.04 | python-pip | Fix pending | UBUNTU-CVE-2018-20225 | |
| Red Hat Enterprise Linux 8 | platform-python-pip | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | python-pip | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | python3-pip | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | python3-pip-wheel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | python-pip | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | python3-pip | Will not fix Will not fix |
References
- https://pip.pypa.io/en/stable/news/
- https://cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html
- https://lists.apache.org/thread.html/rb1adce798445facd032870d644eb39c4baaf9c4a7dd5477d12bb6ab2%40%3Cgithub.arrow.apache.org%3E
- https://bugzilla.redhat.com/show_bug.cgi?id=1835736
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.