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.

Published May 8, 2020 CVSS 3.1 · 7.8 High EPSS 1.8% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 15, 2026, 8:50 PM
Reserved
Dec 19, 2018, 12:00 AM
Status
Modified
Published
May 8, 2020, 6:15 PM
Modified
Jun 17, 2026, 1:52 AM
Severity
Low
Public date
Apr 28, 2020, 12:00 AM