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.

Score
CVSS 3.1 7.8 High
Status
Analyzed - cna@python.org
Published
2026-04-01
Last modified
2026-10-26
Weaknesses
CWE-427

Affected products

References