Vulnerability identifier: #VU88540
Vulnerability risk: Medium
CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-19
Exploitation vector: Network
Exploit availability: No
Vulnerable software:
pip
Universal components / Libraries /
Programming Languages & Components
Vendor: Python Packaging Authority
Description
The vulnerability allows a remote attacker to compromise the affected system.
The issue exists due to the way pip handles software versioning during installation with --extra-index-url option enabled, which results in the version with the highest version number to be installed, even if the user had intended to obtain a private package from a private index. A remote attacker compromise the repository and force installation of a malicious package.
Mitigation
Install updates from vendor's website.
Vulnerable software versions
pip: 0.3 - 23.3.1
External links
http://cowlicks.website/posts/arbitrary-code-execution-from-pips-extra-index-url.html
http://bugzilla.redhat.com/show_bug.cgi?id=1835736
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability.