CVE-2020-0604
Visual Studio Code vulnerability analysis and mitigation

Overview

A remote code execution vulnerability (CVE-2020-0604) exists in Visual Studio Code when it processes environment variables after opening a project. The vulnerability was disclosed and tracked by Microsoft, affecting Visual Studio Code versions up to (excluding) 0.24.0 (NVD).

Technical details

The vulnerability received a CVSS v3.1 base score of 8.8 (HIGH) from NVD with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, while Microsoft assessed it with a score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The CVSS v2.0 base score was 9.3 (HIGH) with vector (AV:N/AC:M/Au:N/C:C/I:C/A:C) (NVD).

Impact

An attacker who successfully exploits this vulnerability could run arbitrary code in the context of the current user. If the current user has administrative rights, the attacker could take control of the affected system, install programs, view or modify data, and create new accounts with full user rights (NVD).

Exploitability

To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code. The attacker-specified code would execute when the target opened the integrated terminal (NVD).

Mitigation and workarounds

Microsoft addressed the vulnerability by modifying the way Visual Studio Code handles environment variables. Users should update to the latest version of Visual Studio Code that contains the security fix (NVD).

Additional resources


SourceThis report was generated using AI

Related Visual Studio Code vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-70336HIGH8.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesAug 11, 2026
CVE-2026-69320HIGH8.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesAug 11, 2026
CVE-2026-69306HIGH8.2
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesAug 11, 2026
CVE-2026-70335HIGH7.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesAug 11, 2026
CVE-2026-69278HIGH7.8
  • Visual Studio Code logoVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesAug 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management