CVE-2026-3219: Pip Pip Has An Interpretation Conflict Vulnerability

MODERATE
Advisory Identifier: GHSA-58qw-9mgm-455v
CWE-434
Published
Advisory Summary

CVE-2026-3219 is a MODERATE pip has an interpretation conflict vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Pip libraries in the PyPI ecosystem. The issue involves pip has an interpretation conflict due to handling both concatenated tar and zip files as zip files. Remediation is available by upgrading affected packages to version 26.1.

CVE-2026-3219 at a Glance

CVE Identifier CVE-2026-3219
GHSA Identifier GHSA-58qw-9mgm-455v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Pip
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-3219

To remediate this vulnerability, upgrade all affected Pip dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pip fixed: 26.1
pip install pip>=26.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pip

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-3219, inspect your installed packages using pip:

pip show pip

Analyze the terminal output to locate any version of Pip in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.1), your application is affected.

Note: The pip show pip command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Pip, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-3219 Affected Pip Versions

1 component(s)
Fixed Versions:
26.1
Product / Package Ecosystem Affected Versions Fixed Version
pip
PyPI
< 26.1
26.1

References

Frequently Asked Questions

What is CVE-2026-3219?
CVE-2026-3219 is a security vulnerability in Pip involving pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Pip versions are affected?
Affected versions include releases prior to 26.1 across affected packages: pip.
What version fixes CVE-2026-3219?
Upgrading to 26.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pip affected?
Yes, pip is affected in releases prior to 26.1. Upgrade your dependency to 26.1 or later.
What CWE is associated with CVE-2026-3219?
CVE-2026-3219 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check PyPI dependencies for CVE-2026-3219?
Run the dependency tree command: 'pip show pip'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-58qw-9mgm-455v",
  "modified" : "2026-05-20T20:54:23Z",
  "published" : "2026-04-20T18:31:48Z",
  "aliases" : [ "CVE-2026-3219" ],
  "summary" : "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pip"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "26.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 26.0.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-3219"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/pip/issues/13867"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/pip/pull/13870"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pypa/pip"
  }, {
    "type" : "WEB",
    "url" : "https://mail.python.org/archives/list/security-announce@python.org/thread/QAJ5JIVWWCAJ4EZL2FP5MOOW35JS7LRJ"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2026/04/20/8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-24T15:48:17Z",
    "nvd_published_at" : "2026-04-20T16:16:45Z"
  }
}