REDHAT-BUG-2508514: Medium severity pypi/pip vulnerability

Published Jul 29, 2026
·
Updated

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

1 affected component
pypi/pip

Event History

Jul 29, 2026
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203