CVE-2018-20225

Summary

CVECVE-2018-20225
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-05-08 18:15:00 UTC
Updated2023-11-07 02:56:00 UTC
Description** DISPUTED ** 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.

Risk And Classification

Problem Types: CWE-20

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Pypa Pip All All All All
Application Pypa Pip All All All All

References

ReferenceSourceLinkTags
1835736 – (CVE-2018-20225) CVE-2018-20225 python-pip: when --extra-index-url option is used and package does not already exist in the public index, the installation of malicious package with arbitrary version number is possible. MISC bugzilla.redhat.com
Arbitrary code execution from pip's "—extra-index-url" | cowlicks MISC cowlicks.website Third Party Advisory
Pony Mail! MLIST lists.apache.org
Release Notes — pip 19.0.2 documentation MISC pip.pypa.io Release Notes, Vendor Advisory
Pony Mail! lists.apache.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 378883 Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)
  • 900087 CBL-Mariner Linux Security Update for python-pip 19.2
  • 903110 Common Base Linux Mariner (CBL-Mariner) Security Update for python-pip (3692)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report