Skip to content
RCE Advisory Intermediate CVE-2025-21178

Visual Studio Remote Code Execution Vulnerability (CVE-2025-21178)

A remote code execution vulnerability exists in Visual Studio that requires a user to open a maliciously crafted package file. An attacker who convinces a user to open such a file could execute arbitrary code.

goodbyeselene Follow

Originally disclosed on Microsoft

High 8.8 View original

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation of this vulnerability requires that an attacker convinces a user to open a maliciously crafted package file in Visual Studio.

Visual Studio

Visual Studio

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by goodbyeselene. 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

What the attacker needed

Victim opens a malicious package 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.

This is a security flaw in Microsoft Visual Studio, a program for writing code. If a victim opens a specially made file, the attacker can run their own code on the victim's computer, which is called remote code execution. The victim must be tricked into opening the file.

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 goodbyeselene

View all

40 more disclosed reports, 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.