---
id: CVE-2026-3219
aliases:
  - GHSA-58qw-9mgm-455v
  - PYSEC-2026-2875
title: >-
  pip has an interpretation conflict due to handling both concatenated tar and
  ZIP files as ZIP files
summary: >-
  pip has an interpretation conflict due to handling both concatenated tar and
  ZIP files as ZIP files
severity: medium
vendor: pip
product: pip
ecosystem: pip
affected:
  - pip < 26.1
patched:
  - pip 26.1
published: '2026-04-20'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:42.838011658Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-58qw-9mgm-455v'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-3219'
  - url: 'https://github.com/pypa/pip/issues/13867'
  - url: 'https://github.com/pypa/pip/pull/13870'
  - url: 'https://github.com/pypa/pip'
  - url: >-
      https://mail.python.org/archives/list/security-announce@python.org/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/20/8'
tags:
  - osv
  - pip
epss: 0.00144
epssPercentile: 0.04062
ingestedAt: '2026-07-13T18:57:53.088Z'
---

## Overview

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

- `pip < 26.1`

## Remediation

Upgrade to a patched release:

- `pip 26.1`
