Skip to content
Path traversal Advisory Intermediate CVE-2026-70337

Microsoft PowerShell Remote Code Execution Vulnerability (CVE-2026-70337)

A relative path traversal flaw in Microsoft PowerShell Core lets an attacker who controls a server execute code on a client that connects to it. The victim must be convinced to connect, so user interaction is required.

Charlie Vogt Follow with 0hmz, f7d8c52bec79e42795cf15888b85cbad and 2 others

Originally disclosed on Microsoft

High 8.8 View original

Description

Relative path traversal in Microsoft PowerShell Core allows an unauthorized attacker to execute code over a network.

FAQ

How could an attacker exploit this vulnerability? An attacker could host a malicious server and convince a user to connect to it from an affected client. When the client processes the server's response, the attacker could execute code on the client system. User interaction is required.

Microsoft PowerShell Core

Microsoft PowerShell Core

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Charlie Vogt. 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 a relative path traversal in how PowerShell Core handles paths from a server response, allowing files outside the intended directory to be reached.

Impact

An attacker could execute code on the client system, but only if the user connects to the malicious server.

What the attacker needed

Attacker controls a server; victim connects to that server

How it was found

  1. The attacker hosts a malicious server.
  2. The attacker convinces a user to connect to that server from an affected PowerShell client.
  3. The client processes the server's response and the attacker's code runs on the client 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 tool for running commands and scripts on Windows and other systems. A path traversal mistake means the program can be tricked into using a file location outside the folder it should stay in. Here, a malicious server sends a response that makes the client run the attacker's code, but only if the user first connects to that server.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by Charlie Vogt

View all

1 more disclosed report, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.