Jul 2026: Windows PowerShell Remote Code Execution Vulnerability
CVE-2026-40400 Published on July 14, 2026
Windows PowerShell Remote Code Execution Vulnerability
Relative path traversal in Windows PowerShell allows an authorized attacker to execute code over a network.
Weakness Type
Relative Path Traversal
The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. This allows attackers to traverse the file system to access files or directories that are outside of the restricted directory.
Products Associated with CVE-2026-40400
Want to know whenever a new CVE is published for Microsoft products? stack.watch will email you.
Affected Versions
Microsoft PowerShell 7.5:- Version 7.5.0 and below 7.5.11 is affected.
- Version 7.6.0 and below 7.6.6 is affected.
- Version 10.0.14393.0 and below 10.0.14393.9339 is affected.
- Version 10.0.17763.0 and below 10.0.17763.9020 is affected.
- Version 10.0.19044.0 and below 10.0.19044.7548 is affected.
- Version 10.0.19045.0 and below 10.0.19045.7548 is affected.
- Version 10.0.26100.0 and below 10.0.26100.8875 is affected.
- Version 10.0.26200.0 and below 10.0.26200.8875 is affected.
- Version 10.0.28000.0 and below 10.0.28000.2525 is affected.
- Version 6.2.9200.0 and below 6.2.9200.26226 is affected.
- Version 6.2.9200.0 and below 6.2.9200.26226 is affected.
- Version 6.3.9600.0 and below 6.3.9600.23291 is affected.
- Version 6.3.9600.0 and below 6.3.9600.23291 is affected.
- Version 10.0.14393.0 and below 10.0.14393.9339 is affected.
- Version 10.0.14393.0 and below 10.0.14393.9339 is affected.
- Version 10.0.17763.0 and below 10.0.17763.9020 is affected.
- Version 10.0.17763.0 and below 10.0.17763.9020 is affected.
- Version 10.0.20348.0 and below 10.0.20348.5386 is affected.
- Version 10.0.26100.0 and below 10.0.26100.33158 is affected.
- Version 10.0.26100.0 and below 10.0.26100.33158 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.