REDHAT-BUG-2508514: Medium severity pypi/pip vulnerability
pip would incorrectly handle doubly-encoded package URLs from indexes allowing for files to be installed to arbitrary locations on disk even when installing wheels.
This vulnerability requires downloading or installing a package from a malicious package index to succeed, malicious packages alone are not able to exploit this vulnerability. Note that this vulnerability only materially impacts users running pip download with the --only-binary option as installing source distributions from an untrusted index is already an unsafe operation that executes code during install time.
Affected Software
Event History
Frequently Asked Questions
Which pip workflows are materially affected?
The material impact is for users running `pip download` with the `--only-binary` option against an untrusted package index. Installing source distributions from an untrusted index is already unsafe because code can execute during installation.
What must an attacker control for exploitation to succeed?
The attacker needs a malicious package index and must cause pip to download or install a package from that index. A malicious package by itself is not sufficient to exploit the issue.
What can be done while a fix is unavailable?
Avoid downloading or installing packages from untrusted package indexes, particularly when using `pip download --only-binary`. Restrict package retrieval to trusted indexes.