pypa/pip · Security
pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files
- GHSA ID
- GHSA-58qw-9mgm-455v
- CVE ID
- CVE-2026-3219
- Severity
- medium
- Published
- Updated
- CVSS v4
- 4.6 · CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Description
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.
CWEs
- CWE-434 · Unrestricted Upload of File with Dangerous Type
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-3219 ↗
- https://github.com/pypa/pip/pull/13870 ↗
- https://mail.python.org/archives/list/[email protected]/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ ↗
- http://www.openwall.com/lists/oss-security/2026/04/20/8 ↗
- https://github.com/pypa/pip/issues/13867 ↗
- https://github.com/advisories/GHSA-58qw-9mgm-455v ↗