First published: Fri May 08 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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
pypa pip |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
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.
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.
The severity of CVE-2018-20225 is high with a CVSS score of 7.8.
To mitigate the risk, avoid using the --extra-index-url option, or only use trusted private indexes.
You can find more information about CVE-2018-20225 in the references: [1], [2], [3].