CVE-2018-20225: Input Validation

Published May 8, 2020
·
Updated

** 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.

Affected Software

3 affected componentsFixes available
pypa pip
IBM Edge Application Manager<=4.5
Microsoft cm1 python-pip 19.2-2

Event History

May 8, 2020
CVE Published
via MITRE·05:29 PM
Data Sourced
via MITRE·05:29 PM
Description
Disputed
06:15 PM
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
May 14, 2020
Data Sourced
via Red Hat·12:10 PM
DescriptionSeverityAffected Software
Aug 20, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Oct 1, 2025
Data Sourced
via Microsoft·11:11 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:11 PM
Affected Software
Updated
via Microsoft·11:11 PM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-20225?

CVE-2018-20225 is an issue in pip (all versions) where it installs the version with the highest version number, even if the user had intended to obtain a private package from a private index.

2

How does CVE-2018-20225 affect me?

If you use pip with the --extra-index-url option to install packages from private indexes, this vulnerability may allow the installation of unintended packages from public indexes.

3

What is the severity of CVE-2018-20225?

The severity of CVE-2018-20225 is high with a CVSS score of 7.8.

4

How can I mitigate the risk of CVE-2018-20225?

To mitigate the risk, avoid using the --extra-index-url option, or only use trusted private indexes.

5

Where can I find more information about CVE-2018-20225?

You can find more information about CVE-2018-20225 in the references: [1], [2], [3].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203