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

High 8.1 Published Updated

Attackers can execute arbitrary code via the Visual Studio Code Remote Development Extension, requiring developers to update the tool.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-21991?

CVE-2022-21991 is a high-severity code injection vulnerability in Microsoft Visual Studio Code, published on 9 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Visual Studio Code Remote Development Extension Remote Code Execution Vulnerability

Which versions are affected by CVE-2022-21991?

It affects 1 product.

Products include Microsoft Visual Studio Code.

How do I fix CVE-2022-21991?

No fix has been published for CVE-2022-21991 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-21991 being exploited?

There is no known exploitation of CVE-2022-21991 in the wild and no public exploit code.

All Microsoft Visual Studio Code vulnerabilities

Sources

Also known as GHSA-2gx5-p7gf-5xrc.

Is CVE-2022-21991 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free