Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
widely-deployed-product-advisoryendpoint-software-vulnerabilitydependency-confusion-typosquat

Python fixes code execution and package confusion flaws in install manager and pip

Updated 2mo agoFirst seen Apr 1, 20262 sources

Python disclosed CVE-2026-5271, a medium-severity flaw in the Python install manager that affects script alias entrypoints generated by version 26.0. The bug could leave the search path empty, allowing a Python module in the current working directory to override the intended module and execute code as the user. Python said the issue is fixed in version 26.1, noted that versions prior to 26.0 are not affected, and advised users to update and regenerate vulnerable aliases with:

py install --refresh

A separate medium-severity issue, CVE-2026-3219, was disclosed in pip for its handling of concatenated TAR and ZIP archives. pip treated concatenated TAR/ZIP files as ZIP archives regardless of filename or whether the file could be interpreted as both formats, creating confusing installation results and potentially installing files that did not match the expected archive type. The fix changes pip so installation proceeds only when an archive is uniquely identified as either ZIP or TAR, reducing the risk of ambiguous package handling in Python software distribution workflows.

Share:
Python fixes code execution and package confusion flaws in install manager and pip
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the most recent confirmed update back to the earliest known activity.

4 EVENTS
Apr 20, 20262mo ago

pip changes install behavior to reject ambiguous concatenated archives

The announced fix for CVE-2026-3219 changes pip so installation proceeds only when a file is uniquely identified as either a ZIP archive or a tar archive, but not both. This addressed confusing installation outcomes caused by ambiguous archive parsing.

Python discloses pip archive parsing flaw as CVE-2026-3219

Python disclosed CVE-2026-3219, a medium-severity vulnerability in pip's handling of concatenated tar and ZIP archives. Pip could treat concatenated tar and ZIP files as ZIP files regardless of filename, potentially causing installation of files that did not match the expected archive type.

Apr 1, 20263mo ago

Python releases version 26.1 to fix CVE-2026-5271

Python stated that install manager version 26.1 fixes CVE-2026-5271, while versions prior to 26.0 are not affected. Users were advised to update and run "py install --refresh" to regenerate aliases created by the vulnerable release.

Python discloses CVE-2026-5271 in install manager script aliases

Python disclosed CVE-2026-5271, a medium-severity vulnerability in version 26.0 of the Python install manager. The flaw could leave the search path empty for generated script alias entrypoints, allowing a module in the current working directory to override the intended module and execute code as the user.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

2 LINKEDOpen in app
Vulnerabilities
1 linked
Organizations
1 linked
Oracle
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Python fixes code execution and package confusion flaws in install manager and pip | Mallory