5.6Medium
CVE-2026-5271Possible to hijack modules in current working directory
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.
Weakness (CWE):
CWE-427
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| Python Software Foundation | pymanager | 26.0 – < 26.1 |
References and patches
- https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6 vendor-advisoryExploitVendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/01/5 Mailing ListThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:python:pymanager:26.0:*:*:*:*:*:*:*