First published: Thu May 14 2020(Updated: )
A vulnerability 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).
Affected Software | Affected Version | How to fix |
---|---|---|
pip | <=9999.9999.9999 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability in REDHAT-BUG-1835736 occurs when pip installs the highest version number of a package instead of fetching from the intended private index when the --extra-index-url option is used.
The exploitation of the REDHAT-BUG-1835736 vulnerability can lead to arbitrary code execution by installing malicious packages.
To mitigate the REDHAT-BUG-1835736 vulnerability, avoid using the --extra-index-url option or implement version pinning in your package requirements.
All versions of pip are affected by the vulnerability described in REDHAT-BUG-1835736.
Check your package manager or the official pip repository for updates that address the vulnerability in REDHAT-BUG-1835736.