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.
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.002 (7.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 7th percentile — 7.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: +0.000
Affected products
- Python Pymanager — versions 26.0
- Python Software Foundation Pymanager — versions 26.0
Weakness classification (CWE)
References
- github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6 (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.