Improper input validation in Pypa Pip
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
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.018 (77.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 78th percentile — 77.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.017 · newest: 0.018 · change: +0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- pip.pypa.io/en/stable/news/ (Release Notes, Vendor Advisory)
- cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html (Third Party Advisory)
- lists.apache.org/thread.html/rb1adce798445facd032870d644eb39c4baaf9c4a7dd5477d1… (mailing-list)
- bugzilla.redhat.com/show_bug.cgi
Frequently asked questions
- What is CVE-2018-20225?
- CVE-2018-20225 is a high-severity vulnerability in Pypa Pip, classified under Improper Input Validation. CVSS score: 7.8/10. Published 2020-05-08.
- How severe is CVE-2018-20225?
- High severity. CVSS v3 base score is 7.8 out of 10.
- Is CVE-2018-20225 known to be exploited?
- 12 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.