CVE-2018-20225
CVE-2018-20225 is a high-severity vulnerability in Pypa Pip with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-20.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- CVSS v2: 6.8
- EPSS exploit prediction: 2% (76th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-20
- Affected product: Pypa Pip
- Published:
- Last modified:
Description
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
Frequently asked questions
- What is 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
- How severe is CVE-2018-20225?
- CVE-2018-20225 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2018-20225 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (76th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2018-20225?
- CVE-2018-20225 affects Pypa Pip. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2018-20225?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2018-20225 published?
- CVE-2018-20225 was published on 2020-05-08 and last updated on 2026-06-17.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1835736
- 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://pip.pypa.io/en/stable/news/
Affected products (1)
- cpe:2.3:a:pypa:pip:*:*:*:*:*:*:*:*
More vulnerabilities in Pypa Pip
- CVE-2019-20916 — High (CVSS 7.5): The pip package before 19.2 for Python allows Directory Traversal when a URL is given in an install command, because a…
- CVE-2013-1629 — Medium (CVSS 6.8): pip before 1.3 uses HTTP to retrieve packages from the PyPI repository, and does not perform integrity checks on…
- CVE-2026-13346 — Medium (CVSS 6.5): pip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary…
- CVE-2013-5123 — Medium (CVSS 5.9): The mirroring support (-M, --use-mirrors) in Python Pip before 1.5 uses insecure DNS querying and authenticity checks…
- CVE-2021-3572 — Medium (CVSS 5.7): A flaw was found in python-pip in the way it handled Unicode separators in git references. A remote attacker could…
- CVE-2026-8643 — Medium (CVSS 5.5): pip would treat console_scripts and gui_scripts as paths instead of file names without sanitizing the resolved absolute…
Other CWE-20 (Improper Input Validation) vulnerabilities
- CVE-2026-48056 — Critical (CVSS 10.0): Streambert is a cross-platform Electron Desktop App to stream and download video content. Versions prior to 2.5.0…
- CVE-2026-33267 — Critical (CVSS 10.0): Improper Input Validation vulnerability in Apache Traffic Server. This issue affects Apache Traffic Server: from 9.2.0…
- CVE-2026-47668 — Critical (CVSS 10.0): DbGate is cross-platform database manager. In versions 7.1.8 and prior, DbGate's JSON script runner (`POST…
- CVE-2026-16117 — Critical (CVSS 10.0): Impact: @fastify/http-proxy versions up to and including 11.5.0 fail to rewrite the request prefix when the prefix…
- CVE-2026-48316 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48281 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
Browse all CWE-20 (Improper Input Validation) vulnerabilities →