Skip to content
CVE PROGRAM SOURCE RECORD5.6 Medium

CVE-2026-5271

Possible to hijack modules in current working directory

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation pymanager

Default version status: unaffected

  • 26.0 to < 26.1affected

References