Skip to content
OpenAdvisories
Medium · 5.6 CVE-2026-5271 EUVD-2026-17911

Possible to hijack modules in current working directory

Published Apr 1, 2026 · Updated Apr 1, 2026 · Assigned by PSF

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

VendorProductAffectedFixed
Python Software Foundation pymanager 26.0 – < 26.1 26.1

References