Visual Studio Code Remote Code Execution Vulnerability (CVE-2026-69370)
Visual Studio Code fails to neutralise special elements used in a command, allowing command injection. An attacker could execute code over the network if a user opens a specially crafted file.
Tarek Nakkouch Follow with vurmusum, Hiln and 1 other
Originally disclosed on Microsoft
Description
Improper neutralization of special elements used in a command ('command injection') in Visual Studio Code allows an unauthorized attacker to execute code over a network.
FAQ
According to the CVSS metric, the attack vector is network (AV:N) and user interaction is required (UI:R). What is the target context of the remote code execution? This attack requires a user to open a specially crafted file from the attacker to initiate remote code execution.
Visual Studio Code
Visual Studio Code
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the editor passes file-derived input into a command without neutralising special characters.
Impact
An attacker could execute code on the victim's machine, but only if the user opens a specially crafted file.
What the attacker needed
Victim opens a crafted file
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Command injection happens when a program builds a system command from untrusted input without cleaning it, so an attacker can slip in extra commands. Here, opening a crafted file in the code editor could let an attacker run their own code on the victim's machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.