Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege authenticated access
-
DeliveryDeliver crafted relative path to victim
-
ExploitVictim interaction triggers PowerShell path resolution
-
ExecutionTraversal loads attacker-controlled code
-
ImpactExecute arbitrary code as victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
|
| Exploitation Conditions | Per the CVSS vector, exploitation requires the attacker to already hold some authenticated privilege on or reachable to the target (PR:L) and requires user interaction (UI:R) - a victim must be induced to trigger the vulnerable PowerShell path resolution (for example by running a supplied script, module, or command that references an attacker-controlled relative path). The attack is network-based (AV:N) with low complexity (AC:L) and does not cross a privilege/scope boundary (S:U). Limiting factors that reduce realistic risk: it is not exploitable fully unauthenticated, it cannot succeed without user interaction, and it depends on the PowerShell relative-path-handling code path being reached - meaning environments that restrict PowerShell remoting, enforce Constrained Language Mode, or block untrusted script execution materially raise the difficulty. |
| Impact | The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, 8.0 High) describes a network-reachable, low-complexity attack that nonetheless requires both some level of authenticated privilege (PR:L) and victim interaction (UI:R), which meaningfully raises the bar versus a fully unauthenticated wormable flaw. High impact across all three CIA dimensions makes the technical consequence severe if triggered. No EPSS score, KEV entry, or POC was provided in the intelligence, so real-world exploitation likelihood cannot be quantified from the data; the combination of required privileges and user interaction typically correlates with lower mass-exploitation probability. This is a genuine patch-priority item on any Windows fleet given the enormous install base, but the PR:L + UI:R conditions suggest it is more suited to targeted or phishing-assisted attacks than untargeted worming. Note that the CPE strings use the 'a' (application) part for PowerShell while the platform is the OS - verify affected build numbers against the MSRC advisory before scoping. |
| Exploit ScenarioDerived | An attacker holding a low-privilege authenticated foothold sends a specially crafted request or lure that causes a targeted user's PowerShell session to resolve a malicious relative path, and once the victim interacts (e.g., runs a script or opens a supplied item) the traversal loads attacker-controlled code that executes with the victim's rights. No public POC was identified at time of analysis, so exploitation would currently require independent development against the traversal in PowerShell's path handling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 14, 2026
Remote code execution in Windows PowerShell allows an authenticated attacker with low privileges to run arbitrary code across a network by exploiting a relative path traversal (CWE-23) flaw, provided a victim is induced to interact (UI:R). Affecting supported Windows 10/11 clients and Windows Server 2012 through 2025, the issue carries a CVSS 8.0 with full confidentiality, integrity, and availability impact, and a vendor patch is available via MSRC. There is no public exploit identified at time of analysis, and the CVE is not listed in CISA KEV.
RemediationAI
Apply the Microsoft security update for CVE-2026-40400; a vendor patch is available, so install the relevant monthly cumulative/security-only update for each affected Windows client and server SKU as listed in the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40400 (consult that page for the exact fixed build per OS version, as no single fix version string was supplied in the input). Prioritize Server Core and domain-joined systems where PowerShell remoting is enabled. As compensating controls until patching completes, restrict and monitor PowerShell remoting (WinRM/WS-Man on TCP 5985/5986) to trusted management hosts via firewall scoping and JEA, enforce PowerShell Constrained Language Mode and script/module signing to limit loading of attacker-controlled paths, and enable Script Block and Module logging plus AMSI to detect exploitation - noting these controls can break legitimate administrative automation and remoting workflows and should be validated in staging first.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 31 packages in microsoft, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability lies in Windows PowerShell, the scripting host and automation engine bundled with every supported Windows client and server edition. CWE-23 (Relative Path Traversal) means PowerShell fails to properly neutralize '../' sequences or other relative path elements in an input used to construct a file path, letting an attacker escape an intended directory and reference or execute code from an unintended location. Because PowerShell can load modules, scripts, and assemblies by path, a traversal in path resolution can turn a controlled relative reference into arbitrary code execution. The affected CPE set spans microsoft:windows_10 (1607, 1809, 21H2, 22H2), windows_11 (24H2, 25H2, 26H1), and windows_server_2012 through 2025 including Server Core installations, indicating the flawed component ships uniformly across the Windows platform rather than in a single edition.
Know when Windows Server 2012 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Network-reachable but requires an authenticated foothold (PR:L) and victim interaction (UI:R); traversal yields full code execution, so C/I/A all High with unchanged scope.
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
DescriptionCVE.org
Relative path traversal in Windows PowerShell allows an authorized attacker to execute code over a network.
Zero Day Initiative Advisories
Executive ViewAI
CVE-2026-40400 is a remote code execution vulnerability in Windows PowerShell affecting Windows 10, 11, and Server 2012-2025 that allows authenticated users to execute arbitrary code and gain full system compromise. With CVSS 8.0 and complete impact to confidentiality, integrity, and availability, this vulnerability threatens all Windows environments and enables insider threats and lateral movement from compromised low-privilege accounts.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
More in Windows Server 2012
View allWindows MSHTML component contains a remote code execution vulnerability that allows attackers to craft malicious ActiveX
<p>A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged fi
Remote code execution in Microsoft Office 2007-2016 and Windows Vista through 10 allows attackers to execute arbitrary c
Windows MSDT (Microsoft Support Diagnostic Tool) allows remote code execution when called via the ms-msdt URL protocol f
The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows
The Windows VBScript engine contains a remote code execution vulnerability in object handling that allows full system co
Windows Print Spooler Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no auth
The Win32k kernel-mode driver in Windows Vista through Windows Server 2016 allows local privilege escalation, exploited
Windows Search Remote Code Execution Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
Active Directory Domain Services Elevation of Privilege Vulnerability. Rated high severity (CVSS 7.5), this vulnerabilit
EUVD-2026-43787
GHSA-wvqj-vj23-9cf7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB