CVE search · CVE-2026-5271
CVE-2026-5271
medium 5.6
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.
Details
- Status
- Analyzed
- Published
- Last changed
- Source
- cna@python.org
- Weakness
- CWE-427
Severity
| Version | Score | Vector | Source |
|---|---|---|---|
| CVSS 4.0 | medium 5.6 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
cna@python.orgSecondary |
| CVSS 3.1 | high 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
nvd@nist.govPrimary |
Affected products
Vendor and product from the NVD’s CPE applicability statements. Versions and conditions are on the NVD’s page.
- python · pymanager
References
- https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6ExploitVendor Advisory
- http://www.openwall.com/lists/oss-security/2026/04/01/5Mailing ListThird Party Advisory
- https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6ExploitVendor Advisory