REDHAT-BUG-2459774: Medium severity pypi/pip vulnerability
pip handles concatenated tar and ZIP files as ZIP files regardless of filename or whether a file is both a tar and ZIP file. This behavior could result in confusing installation behavior, such as installing "incorrect" files according to the filename of the archive. New behavior only proceeds with installation if the file identifies uniquely as a ZIP or tar archive, not as both.
Affected Software
Event History
Frequently Asked Questions
What archive inputs are affected by this behavior?
The issue applies to concatenated files that are valid as both tar and ZIP archives. Older behavior treats such files as ZIP archives regardless of their filename or dual-format nature.
What does the corrected behavior do differently?
Installation proceeds only when the input identifies uniquely as either a ZIP archive or a tar archive. Files that identify as both formats are no longer accepted for installation.
What is the practical impact during installation?
A specially constructed dual-format archive can lead to confusing installation behavior, including installing files that do not match what the archive filename suggests.