PyPA Advisory Database
PYSEC-2026-2875
pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | pip | All versions before 26.1 (fixed in 26.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-3219
- https://github.com/pypa/pip/issues/13867
- https://github.com/pypa/pip/pull/13870
- https://github.com/pypa/pip
- https://mail.python.org/archives/list/[email protected]/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ
- http://www.openwall.com/lists/oss-security/2026/04/20/8
- https://pypi.org/project/pip
- https://github.com/advisories/GHSA-58qw-9mgm-455v