# CVE-2026-3219: pip — Fixed in 26.1

🐍 PyPI

Not in CISA KEV

# CVE-2026-3219 — pip

[Fix: pypa/pip#13870](https://github.com/pypa/pip/pull/13870)

CVE-2026-3219 is a Unrestricted File Upload vulnerability in pip. A fix is available for pip — see the affected versions and patch details below.

pip doesn't reject concatenated ZIP and tar archives

Also known as[GHSA-58qw-9mgm-455v](/vulnerability/GHSA-58qw-9mgm-455v)PYSEC-2026-2875

Published

Apr 20, 2026

Updated

Oct 28, 2026

Affected

1 pkg

Patched

1 / 1

Exploits

None indexed

Exploitation data as of Nov 10, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

## Exploitation Status

### No confirmed exploitation observed yet

-   CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-3219.

## EPSS Exploitation Probability

[via FIRST.org ↗](https://www.first.org/epss/)

0.1%probability of exploitation in next 30 days

Lower Risk0.00%

Lower risk than most CVEs4th percentile — riskier than 4% of all scored CVEsHighest risk

0.00%0.23%0.45%0.68%0.0%0.1%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from [FIRST.org EPSS](https://www.first.org/epss/).

## Real-World Exposure

1 pkg affected

🐍`pip`

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

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

## Affected Packages

1 total 1 fixed

Ecosystem

Package

Vulnerable range

Fix

🐍PyPI

`pip` 

all versions

26.1`pip install --upgrade 'pip==26.1'`

## Detection & mitigation playbook

Open-source dependency

1.  ### Detect
    
    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for pip, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
    
2.  ### Fix
    
    Update pip to 26.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-3219 is resolved across your whole dependency graph.
    
3.  ### Workarounds
    
    Treat uploaded files as untrusted until proven otherwise: validate the actual content type rather than the supplied extension, store uploads outside the web root on a volume mounted without execute permission, and rename them to server-generated identifiers so an attacker cannot choose the path a request will later resolve.
    

## Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatModerate

Product

Fixed in

Advisory

Red Hat Hardened Images

`python-pip-main-26.1.1-3.hum1`

[RHSA-2026:20074](https://access.redhat.com/errata/RHSA-2026:20074)

Red Hat Hardened Images

`python-pip-main-26.1.2-1.hum1`

[RHSA-2026:36359](https://access.redhat.com/errata/RHSA-2026:36359)

Red Hat OpenShift AI 3.0

`rhai/base-image-rocm-rhel9:1793041981`

[RHSA-2026:91219](https://access.redhat.com/errata/RHSA-2026:91219)

Red Hat OpenShift AI 3.0

`rhai/base-image-cuda-rhel9:1793042067`

[RHSA-2026:91236](https://access.redhat.com/errata/RHSA-2026:91236)

Red Hat OpenShift AI 3.0

`rhai/base-image-cuda-rhel9:1793328358`

[RHSA-2026:94476](https://access.redhat.com/errata/RHSA-2026:94476)

## Frequently Asked Questions

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.

O3 Security · Impact-Aware SCA

### Is CVE-2026-3219 in your dependencies?

Find it across PyPI, including transitive dependencies.

[Scan my dependencies](/book-demo) [How O3 SCA works](/impact-aware-sca)