CVE-2026-5271 PUBLISHED

Possible to hijack modules in current working directory

Assigner: PSF
Reserved: 31.03.2026 Published: 01.04.2026 Updated: 01.04.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS Score: 5.6

Product Status

Vendor Python Software Foundation
Product pymanager
Versions Default: unaffected
  • affected from 26.0 to 26.1 (excl.)

Credits

  • Steve Dower remediation developer
  • LAKSHMIKANTHAN K reporter

References