CVE-2020-0604: Visual Studio Code - Remote Code Execution
- Cve: CVE-2020-0604
- Name: Visual Studio Code - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary code with the current user's privileges, potentially leading to full system compromise.
- Remediation: Update to the latest version of Visual Studio Code that addresses this vulnerability.
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs the target to clone and open a malicious repository
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.03623
- Epss percentile: 0.89805
- Assignee: [email protected]
- Published at: 2020-08-17T19:15:13Z
- Age in days: 2290
- Modified at: 2026-06-17T02:46:08Z
- Patch available: yes
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-0604
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-noinfo | — |
References
| Url | Source | Tags |
|---|---|---|
| https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2020-0604 | nvd | Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| microsoft:visual_studio_code | < 0.24.0 | no | nvd | /v1/products/microsoft/visual_studio_code |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 5
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports