CVE-2026-5271

Possible to hijack modules in current working directory

State
Published
Severity
5.6 Medium
Published
Apr 1, 2026
Updated
Apr 1, 2026
Reserved
Mar 31, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.6 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

  • CWE-427 Uncontrolled Search Path Element

Affected Products

ProductVersions
pymanagerPython Software Foundation
  • 26.0 to before 26.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.