Windows PowerShell relative path traversal remote code execution
CVE-2026-40400High
Windows PowerShell contains a relative path traversal vulnerability that allows an authorised attacker to execute code over a network. An attacker who has network access to a system running PowerShell can exploit this flaw by crafting a malicious relative path that traverses directories to access and execute arbitrary code. The attacker must be authorised to interact with the PowerShell instance to exploit this vulnerability.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Detail
Weakness: CWE-23 (opens in a new tab)
Affected versions
- microsoft windows 10 1607: before 10.0.14393.9339
- microsoft windows 10 1809: before 10.0.17763.9020
- microsoft windows 10 21h2: before 10.0.19044.7548
- microsoft windows 10 22h2: before 10.0.19045.7548
- microsoft windows 11 24h2: before 10.0.26100.8875
- microsoft windows 11 25h2: before 10.0.26200.8875
- microsoft windows 11 26h1: before 10.0.28000.2269
- microsoft windows server 2012: All versions listed
- microsoft windows server 2012: r2
- microsoft windows server 2016: before 10.0.14393.9339
- microsoft windows server 2019: before 10.0.17763.9020
- microsoft windows server 2022: before 10.0.20348.5386
- microsoft windows server 2025: before 10.0.26100.33158
Reports naming this CVE1 in total
· MSRC Security Update Guide
CVE-2026-40400 Windows PowerShell Remote Code Execution Vulnerability (opens in a new tab)