High severity · published Aug 17, 2020
CVE-2020-0604
A remote code execution vulnerability exists in Visual Studio Code when it process environment variables after opening a project
7.8
CVSS
3.6%
EPSS
No
On KEV
Description
A remote code execution vulnerability exists in Visual Studio Code when it process environment variables after opening a project. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the current user. If the current user is logged on with administrative user rights, an attacker could take control of the affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.
To exploit this vulnerability, an attacker would need to convince a target to clone a repository and open it in Visual Studio Code. Attacker-specified code would execute when the target opened the integrated terminal.
The update address the vulnerability by modifying the way Visual Studio Code handles environment variables.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)3.6% · higher than 89% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
VS
Visual Studio Code · Microsoft
before 0.24.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-0604
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-0604
Patch
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-0604
More from Visual Studio Code
9.8
CVE-2025-55319
Ai command injection in Agentic AI and Visual Studio Code allows an unauthorized attacker to execute code over a network
9.8
CVE-2024-43488
Missing authentication for critical function in Visual Studio Code extension for Arduino allows an unauthenticated attacker to perform remote code execution through network attack…
9.6
CVE-2026-102238
Visual Studio Code Remote Code Execution Vulnerability
9.6
CVE-2026-81376
Visual Studio Code Security Feature Bypass Vulnerability
9.6
CVE-2026-47281
Visual Studio Code Elevation of Privilege Vulnerability
