Vulnerability in Python Pymanager
CVE-2026-5271
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.
EPSS: 0.002 (7.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
Affected products
- Python Pymanager — versions 26.0
- Python Software Foundation Pymanager — versions 26.0
Weakness classification (CWE)
References
- cna@python.org (Exploit, vendor-advisory, Vendor Advisory)
- af854a3a-2127-422b-91ae-364da2661108 (Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2026-5271?
- CVE-2026-5271 is a high-severity vulnerability in Python Pymanager, classified under Uncontrolled Search Path Element. CVSS score: 7.8/10. Published 2026-04-01.
- How severe is CVE-2026-5271?
- High severity. CVSS v3 base score is 7.8 out of 10.