REDHAT-BUG-1835736: Low severity Python pip vulnerability
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
Event History
Frequently Asked Questions
What is the vulnerability in REDHAT-BUG-1835736?
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.
What is the potential impact of the REDHAT-BUG-1835736 vulnerability?
The exploitation of the REDHAT-BUG-1835736 vulnerability can lead to arbitrary code execution by installing malicious packages.
How can I mitigate the REDHAT-BUG-1835736 vulnerability?
To mitigate the REDHAT-BUG-1835736 vulnerability, avoid using the --extra-index-url option or implement version pinning in your package requirements.
Which versions of pip are affected by REDHAT-BUG-1835736?
All versions of pip are affected by the vulnerability described in REDHAT-BUG-1835736.
Is there an update available for REDHAT-BUG-1835736?
Check your package manager or the official pip repository for updates that address the vulnerability in REDHAT-BUG-1835736.