5.6Medium

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

Python Software Foundation pymanager Published: (7 months ago)

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.

Weakness (CWE): CWE-427

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Python Software Foundation pymanager 26.0 – < 26.1

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:python:pymanager:26.0:*:*:*:*:*:*:*