CVE-2021-34529: Microsoft Visual Studio Code maven.executable.options Command Injection Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Visual Studio Code. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the processing of the settings.json file. When parsing the maven.executable.options parameter, the process does not properly validate a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the current user.
Other sources
Visual Studio Code Remote Code Execution Vulnerability
— Microsoft
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2021-34529?
CVE-2021-34529 is a vulnerability in Microsoft Visual Studio Code that allows remote attackers to execute arbitrary code.
How can CVE-2021-34529 be exploited?
CVE-2021-34529 can be exploited by visiting a malicious page or opening a malicious file.
What is the severity of CVE-2021-34529?
The severity of CVE-2021-34529 is high with a CVSS score of 7.8.
Which versions of Visual Studio Code are affected by CVE-2021-34529?
Visual Studio Code versions up to 1.57.1 are affected by CVE-2021-34529.
How can I fix CVE-2021-34529?
To fix CVE-2021-34529, update Visual Studio Code to the latest version available.