What’s Vulnerable › Vulnerabilities
CVE-2026-5271: Possible to hijack modules in current working directory
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-04-01 · updated 2026-10-26
- Weakness: CWE-427
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.
Affected products
References
- https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6
- http://www.openwall.com/lists/oss-security/2026/04/01/5
- https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6
Get alerted when CVE-2026-5271 or the next vulnerability affects your stack