VULNERABILITY INTELLIGENCE
CVE-2026-5271
CVSS score5.6 MEDIUM
EPSS probability0.18%
CISA KEVNot currently listed
Published2026-04-01
Last modified2026-10-26
CVSS vectorCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
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 classification
- CWE-427: Uncontrolled Search Path Element
Primary references
- cna@python.org — Exploit, Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Mailing List, Third Party Advisory
- 134c704f-9b21-4f2e-91b3-4a467353bcc0 — Exploit, Vendor Advisory