CVE-2026-5271: Python Software Foundation pymanager · Uncontrolled Search Path Element
Affects Python Software Foundation pymanagerSource CVE Database V5
Not known to be exploited · CVSS 5.6 Medium : upgrade to 26.1 when convenient.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 26.1
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade Python Software Foundation pymanager to 26.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundationpymanager | Affected
| Fixed in
|
PyPIpymanagerpkg:pypi/pymanagerOther threats | Affected
| Fixed in– |
GitHubpymanagerpkg:github/pymanagerOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2026-5271, organizations should implement the following specific measures: 1) Avoid running pymanager in directories where untrusted users can write files; restrict write permissions on working directories to trusted users only. 2) Use virtual environments or containerization to isolate Python execution environments and control sys.path contents explicitly. 3) Modify or patch pymanager to exclude the current working directory from sys.path or to prioritize trusted module paths over the CWD. 4) Implement file integrity monitoring on working directories to detect unauthorized module additions or changes. 5) Educate developers and system administrators about the risks of module shadowing and enforce secure coding and deployment practices. 6) Monitor runtime environments for unexpected module loads or suspicious behavior indicative of shadowed modules. 7) If possible, upgrade pymanager to a version that addresses this vulnerability once available. These steps go beyond generic advice by focusing on controlling the working directory environment and sys.path management.
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.