# CVE-2026-3219: pip doesn't reject concatenated ZIP and tar archives

- Severity: Medium 4.6 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-20T14:55:38.282Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-58qw-9mgm-455v, PYSEC-2026-2875
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- pip: before 26.1
- pip (PyPI): before 26.1

## Every score

- PSF: CVSS:4.0 4.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/pypa/pip/pull/13870> (patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ/> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/04/20/8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-3219> (advisory)
- <https://github.com/pypa/pip/issues/13867> (web)
- <https://github.com/pypa/pip> (package)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ> (web)
- <https://pypi.org/project/pip> (package)
- <https://github.com/advisories/GHSA-58qw-9mgm-455v> (advisory)

## Sources

- CVE List: [CVE-2026-3219](https://www.cve.org/CVERecord?id=CVE-2026-3219), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-58qw-9mgm-455v](https://github.com/advisories/GHSA-58qw-9mgm-455v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-3219](https://nvd.nist.gov/vuln/detail/CVE-2026-3219), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2875](https://osv.dev/vulnerability/PYSEC-2026-2875), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-3219 · Whole record: https://cve.day/CVE-2026-3219.json · Rebuilt by cve.day 2026-11-25T22:59:19.042Z
