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.
History

Thu, 02 Apr 2026 00:30:00 +0000

Type Values Removed Values Added
References

Wed, 01 Apr 2026 23:45:00 +0000

Type Values Removed Values Added
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.
Title Possible to hijack modules in current working directory
Weaknesses CWE-427
References
Metrics cvssV4_0

{'score': 5.6, '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'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published:

Updated: 2026-04-01T23:12:18.741Z

Reserved: 2026-03-31T20:02:35.393Z

Link: CVE-2026-5271

cve-icon Vulnrichment

Updated: 2026-04-01T23:12:18.741Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-01T14:16:59.343

Modified: 2026-04-02T00:16:24.297

Link: CVE-2026-5271

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.