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

- Severity: Medium 5.6 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T13:48:07.534Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-427
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: PSF

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

(As written by CVE List.)

## Affected

- Python Software Foundation pymanager: from 26.0 before 26.1
- python pymanager: 26.0

## Every score

- PSF: CVSS:4.0 5.6 Medium `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6> (exploit, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/04/01/5> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2026-5271](https://www.cve.org/CVERecord?id=CVE-2026-5271), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-5271](https://nvd.nist.gov/vuln/detail/CVE-2026-5271), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-5271 · Whole record: https://cve.day/CVE-2026-5271.json · Rebuilt by cve.day 2026-11-25T22:59:17.692Z
