Skip to content
RCE Advisory Intermediate CVE-2018-8256

Microsoft PowerShell Remote Code Execution Vulnerability (CVE-2018-8256)

PowerShell did not properly handle specially crafted files, allowing an attacker to execute malicious code on a vulnerable system. An attacker could exploit this by sending a crafted file to the target.

Snyk Security Research Team Follow

Originally disclosed on Microsoft

High 6.3 View original

Description

A remote code execution vulnerability exists when PowerShell improperly handles specially crafted files. An attacker who successfully exploited this vulnerability could execute malicious code on a vulnerable system. To exploit the vulnerability, an attacker must send a specially crafted file to a vulnerable system. The security update fixes the vulnerability by ensuring PowerShell properly handles files.

Microsoft PowerShell

Microsoft PowerShell

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Snyk Security Research Team. 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, PowerShell failed to properly validate or handle specially crafted files, leading to code execution.

Impact

An attacker could execute malicious code on a vulnerable system, but the exploit requires sending a specially crafted file to the target.

What the attacker needed

Send a specially crafted file; victim opens the file

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. This bug meant that if someone sent you a specially made file and it was opened, harmful code could run on your computer. The fix makes PowerShell check files properly.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Snyk Security Research Team

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.