---
cve: "CVE-2026-5271"
severity: "MEDIUM"
cvss: 5.6
epss: "0.2%"
vendor: "Python Software Foundation"
kev: false
exploited: false
published: "2026-04-01 14:16:59"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-10-28T11:52:31+01:00"
---

# CVE-2026-5271

> 5.6 MEDIUM · 🧪 PoC

## Beschreibung

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.

## CNA-Record (Kanon, cvelistV5)

- CNA: **PSF**
- State: PUBLISHED
- Stand: 2026-04-01 23:12:18
- CNA-CVSS: **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`)

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **poc**
  - Automatable: **no**
  - Technical Impact: **partial**

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |

## Schwachstellen-Klasse

- **CWE-427** — Uncontrolled Search Path Element
  The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.

## Angriffsmuster (CAPEC)

- [CAPEC-38 — Leveraging/Manipulating Configuration File Search Paths](https://capec.mitre.org/data/definitions/38.html) _(Severity: Very High)_
- [CAPEC-471 — Search Order Hijacking](https://capec.mitre.org/data/definitions/471.html) _(Severity: Medium)_

## ATT&CK-Techniken

- [T1574.007 — Hijack Execution Flow: Path Interception by PATH Environment](https://attack.mitre.org/techniques/T1574/007/)
- [T1574.009 — Hijack Execution Flow: Path Interception by Unquoted Path](https://attack.mitre.org/techniques/T1574/009/)
- [T1574.001 — Hijack Execution Flow:DLL search order hijacking](https://attack.mitre.org/techniques/T1574/001/)
- [T1574.004 — Hijack Execution Flow: Dylib Hijacking](https://attack.mitre.org/techniques/T1574/004/)
- [T1574.008 — Hijack Execution Flow: Path Interception by Search Order Hij](https://attack.mitre.org/techniques/T1574/008/)

## Patch verfügbar (OSV)

- 75c7c3531d74d1835088508ec02eafa90aa7a0f6 (Commit)

## Referenzen

- <https://github.com/python/pymanager/security/advisories/GHSA-jr5x-hgm4-rrm6>
- <http://www.openwall.com/lists/oss-security/2026/04/01/5>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2026-5271/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
