CVE-2021-34529: Microsoft Visual Studio Code maven.executable.options Command Injection Remote Code Execution Vulnerability

Published Jul 13, 2021
·
Updated

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

3 affected componentsFixes available
Microsoft Visual Studio Code<1.57.1
Microsoft Visual Studio Code
Microsoft Visual Studio Code

Event History

Jul 13, 2021
CVE Published
via Microsoft·07:00 AM
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Jul 14, 2021
CVE Published
via MITRE·05:54 PM
Data Sourced
via MITRE·05:54 PM
DescriptionSeverity
Feb 26, 2025
Advisory Published
via ZDI·06:51 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-34529?

CVE-2021-34529 is a vulnerability in Microsoft Visual Studio Code that allows remote attackers to execute arbitrary code.

2

How can CVE-2021-34529 be exploited?

CVE-2021-34529 can be exploited by visiting a malicious page or opening a malicious file.

3

What is the severity of CVE-2021-34529?

The severity of CVE-2021-34529 is high with a CVSS score of 7.8.

4

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.

5

How can I fix CVE-2021-34529?

To fix CVE-2021-34529, update Visual Studio Code to the latest version available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203