CVE-2018-20225: Input Validation
** 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
Event History
Frequently Asked Questions
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.
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.
What is the severity of CVE-2018-20225?
The severity of CVE-2018-20225 is high with a CVSS score of 7.8.
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.
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].