CVE-2026-5271 MEDIUM

CVE-2026-5271: Possible to hijack modules in current working directory

Vendor Python Software Foundation
Product pymanager
Published April 1, 2026
Last update April 1, 2026

CVSS base score

5.6/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 1, 2026 CVE published
April 1, 2026 Record updated