Possible to hijack modules in current working directory
Python Software Foundation pymanager
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation pymanager |
| No fix yet |
Original 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.
From the CVE record · PSF