Skip to content
RCE Advisory Advanced CVE-2022-21991

Visual Studio Code Remote Development Extension Remote Code Execution Vulnerability (CVE-2022-21991)

The Visual Studio Code Remote Development Extension contained a flaw that allowed an attacker to send a specially crafted request to a host running the extension. Successful exploitation could lead to remote code execution, but only on systems configured to host a remote development environment and required environment-specific information.

levatao Follow

Originally disclosed on Microsoft

High 8.1 View original

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to gather information specific to the environment of the targeted component.

FAQ

How could an attacker exploit this vulnerability? An attacker would need to send a specially crafted request to a host running the Visual Studio Code Remote Development Extension. This issue only affects systems configured to host a remote development environment.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by levatao and eastjiao. 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 achieve remote code execution, but only on systems configured to host a remote development environment and after gathering environment-specific information.

What the attacker needed

Host configured for remote development; attacker gathers environment-specific info

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 vulnerability in an extension that lets people use Visual Studio Code to work on code stored on another computer. An attacker who knows details about that setup could send a crafted request and potentially run their own code on the host. It only affects machines set up to host remote development environments.

What is RCE?

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

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.