Skip to main content
← All vulnerabilities
CVE-2026-5271

Possible to hijack modules in current working directory

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 26.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Python Software Foundation pymanager

    From 26.0 · fixed in 26.1

References 1

GitHub · python/pymanager