Skip to content
RCE Advisory Intermediate CVE-2022-35826

Visual Studio Remote Code Execution Vulnerability (CVE-2022-35826)

A specially crafted file opened in Visual Studio could allow an attacker to run code on the victim's machine. The attacker would need to convince the user to open the file, either via email or a hosted website.

HAO LI 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 the vulnerability requires that a user open a specially crafted file. In an email attack scenario, an attacker could exploit the vulnerability by sending the specially crafted file to the user and convincing the user to open the file. In a web-based attack scenario, an attacker could host a website (or leverage a compromised website that accepts or hosts user-provided content) containing a specially crafted file designed to exploit the vulnerability. An attacker would have no way to force users to visit the website. Instead, an attacker would have to convince users to click a link, typically by way of an enticement in an email or instant message, and then convince them to open the specially crafted file.

Visual Studio

Visual Studio

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by HAO LI of VenusTech ADLab. 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

Impact

An attacker could run code on the victim's machine, but only if the user opens the crafted file, so user interaction is required.

What the attacker needed

Victim opens a crafted file; attacker convinces user via email or link

The fix

Microsoft marked customer action as required, indicating a security update should be applied.

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.

Visual Studio is a program developers use to write software. This flaw meant that if you opened a malicious file in it, the file could run its own code on your computer, not just display content. The attacker cannot do this alone; they must trick you into opening the file first.

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 HAO LI

View all

23 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.