CVE-2019-0728 Code injection in Visual Studio Code

High 7.8 Published Updated

Attackers can execute arbitrary code by tricking users into opening a malicious project that exploits environment variable processing in Visual Studio Code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2019-0728?

CVE-2019-0728 is a high-severity code injection vulnerability in Microsoft Visual Studio Code, published on 6 Mar 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A remote code execution vulnerability exists in Visual Studio Code when it process environment variables after opening a project, aka 'Visual Studio Code Remote Code Execution Vulnerability'.

Which versions are affected by CVE-2019-0728?

It affects 1 product.

Products include Microsoft Visual Studio Code.

How do I fix CVE-2019-0728?

No fix has been published for CVE-2019-0728 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-2019-0728 being exploited?

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

All Microsoft Visual Studio Code vulnerabilities

Sources

Also known as GHSA-9hfq-hpxq-hq7w.

Is CVE-2019-0728 in your software?

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

Check your SBOMs for free