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.
Published: 2026-04-20
Score: 4.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Confusing Package Installation due to Misidentified Archives
Action: Assess Impact
AI Analysis

Impact

This vulnerability is a file type validation weakness involving improper handling of archive concatenation (CWE-434 and CWE-1287). When pip receives a concatenated tar and ZIP archive, it treats it solely as a ZIP file, ignoring the file name or dual‑format content. Consequently, pip may install unintended files based on the mistaken archive type. Based on the description, it is inferred that an attacker would need to provide a malicious archive file to pip during installation in order to influence the outcome. The resulting issue does not provide direct code execution but can lead to incorrect or misleading package contents being installed by the user.

Affected Systems

The Python Packaging Authority’s pip tool is affected. No specific version information is provided, so any unpatched pip releases prior to the safe‑concatenation fix may be vulnerable.

Risk and Exploitability

The CVSS score of 4.6 indicates a moderate impact. The EPSS score of < 1% suggests an extremely low likelihood of exploitation. The vulnerability is not listed in CISA KEV. The likely attack vector requires an attacker to supply a malicious archive file to pip during an installation, which could result in unintended package contents but does not directly enable arbitrary code execution. The risk remains moderate and should be mitigated by updating pip to a version that correctly handles concatenated archives.

Generated by OpenCVE AI on April 29, 2026 at 00:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pip to the latest version, which correctly handles concatenated ZIP and tar archives.
  • Before installing from untrusted sources, verify the archive type using a dedicated file inspection tool or check the file signature to ensure it is a valid ZIP or tar archive.
  • Monitor CVE advisories and pip security announcements for additional updates or workarounds.

Generated by OpenCVE AI on April 29, 2026 at 00:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-58qw-9mgm-455v pip has an interpretation conflict due to handling both concatenated tar and ZIP files as ZIP files
History

Fri, 24 Apr 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1287
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.0, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N'}

threat_severity

Moderate


Wed, 22 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Python
Python pip
Vendors & Products Python
Python pip

Mon, 20 Apr 2026 21:30:00 +0000

Type Values Removed Values Added
References

Mon, 20 Apr 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-749

Mon, 20 Apr 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20
CWE-749

Mon, 20 Apr 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-434
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Apr 2026 15:45:00 +0000


Mon, 20 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
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.
Title pip doesn't reject concatenated ZIP and tar archives
References
Metrics cvssV4_0

{'score': 4.6, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published:

Updated: 2026-04-20T20:15:23.710Z

Reserved: 2026-02-25T17:50:26.456Z

Link: CVE-2026-3219

cve-icon Vulnrichment

Updated: 2026-04-20T20:15:23.710Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-20T16:16:45.430

Modified: 2026-04-20T21:16:36.420

Link: CVE-2026-3219

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-20T14:55:38Z

Links: CVE-2026-3219 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T00:30:16Z

Weaknesses