Microsoft PowerShell Security Feature Bypass Vulnerability (CVE-2026-70338)
Microsoft PowerShell contains a code injection flaw that lets a local attacker bypass Windows Defender Application Control and PowerShell Constrained Language Mode. An attacker could then run untrusted code with capabilities those protections are meant to block.
Ayato Shitomi Follow with YMsora
Originally disclosed on Microsoft
Description
Improper control of generation of code ('code injection') in Microsoft PowerShell allows an unauthorized attacker to bypass a security feature locally.
FAQ
What kind of security feature could be bypassed by successfully exploiting this vulnerability? An attacker who successfully exploited this vulnerability could bypass Windows Defender Application Control and PowerShell Constrained Language Mode restrictions, allowing untrusted code to run with capabilities those protections are designed to block.
Microsoft PowerShell
Microsoft PowerShell
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely improper control of code generation in PowerShell, which allows crafted input to produce code that evades the application control and language mode restrictions.
Impact
A local attacker could bypass Windows Defender Application Control and PowerShell Constrained Language Mode, allowing untrusted code to run with capabilities those protections are designed to block.
What the attacker needed
Local access to the target system
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
PowerShell is a scripting tool built into Windows. Windows Defender Application Control and Constrained Language Mode are safety settings that stop scripts from running dangerous code. This bug lets someone get around those settings and run code they should not be able to run.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.