Advisory

PYSEC-2026-2875

Also known as: CVE-2026-3219, GHSA-58qw-9mgm-455v

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

Not rated by the source.

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:31 UTC

Affected packages and fixes

pip

PyPI · All systems

Affected

  • introduced 0, fixed 26.1 (ecosystem)

Fixed versions

26.1

Fix

  • Fixed version 26.1
    pip install --upgrade pip==26.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences