Skip to content
Access control Advisory Intermediate CVE-2026-26143

Microsoft PowerShell Security Feature Bypass Vulnerability (CVE-2026-26143)

Improper input validation in Microsoft PowerShell allows an attacker to bypass dynamic-expression security checks, potentially leading to arbitrary code execution when the -SkipLimitCheck switch is used with Import-PowerShellDataFile. The victim must execute a malicious file sent by the attacker.

surfingoldelephant Follow

Originally disclosed on Microsoft

High 7.8 View original

Description

Improper input validation in Microsoft PowerShell allows an unauthorized attacker to bypass a security feature locally.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? An attacker would have to send the victim a malicious file that the victim would have to execute.

FAQ

What kind of security feature could be bypassed by successfully exploiting this vulnerability? Exploiting this vulnerability bypasses dynamic-expression security checks which may lead to arbitrary code execution when then -SkipLimitCheck is used with Import-PowerShellDataFile. If you do not use the -SkipLimitCheck switch, you are not affected.

FAQ

Is the Windows native version of PowerShell affected by this vulnerability? No, this vulnerability was introduced after PowerShell was forked from Windows powerShell so the inbox version is not affected. The current store app addresses the vulnerability.

Microsoft PowerShell

Microsoft PowerShell

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by surfingoldelephant. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 validation of input in PowerShell's dynamic-expression security checks when the -SkipLimitCheck switch is used.

Impact

An attacker could bypass security checks and potentially achieve arbitrary code execution, but only if the victim executes a malicious file and the -SkipLimitCheck switch is used; otherwise users are not affected.

What the attacker needed

Victim executes a malicious file; -SkipLimitCheck switch is used

The fix

The vulnerability was fixed in the current store app version of PowerShell.

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. This bug lets a bad file slip past a safety check that normally stops certain dangerous commands, so if someone runs that file with a special option, harmful code could run on their computer. You are only at risk if you use that special option.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.