CVE-2026-5271 Details
Description
pymanager included the current working directory in sys.path meaning modules could be shadowed by modules in the current working directory. As a result, if a user executes a pymanager-generated command (e.g., pip, pytest) from an attacker-controlled directory, a malicious module in that directory can be imported and executed instead of the intended package.
A vulnerability in pymanager version 26.0 allows for arbitrary local code execution by manipulating the module import path. The issue arises because pymanager's alias wrapper sets the current working directory as the first entry in the module search path. This prioritization enables the execution of malicious modules placed in the current directory, instead of the intended ones, when commands are run through pymanager.
Users can upgrade to pymanager version 26.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6 | CISA-ADP | ExploitVendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/04/01/5 | CVE | Mailing ListThird Party Advisory |
| https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-427 | Uncontrolled Search Path Element | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| python pymanager | 26.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Apr 7, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | CVE Modified | CVE |
| Apr 1, 2026 | CVE Modified | CISA-ADP |
| Apr 1, 2026 | CVE Modified | [email protected] |
| Apr 1, 2026 | New CVE Received | [email protected] |