CVE-2025-65715: Remote Code Execution in Visual Studio Code Code Runner via executorMap
- Vendor
- Formulahendry
CVE-2025-65715 is a command injection vulnerability in the Visual Studio Code Code Runner extension. The flaw is caused by insufficient validation of user-controlled configuration data in the code-runner.executorMap setting from settings.json. The extension is reported to pass this value into Node.js child_process.spawn() with shell execution enabled, allowing attacker-influenced command construction. If a developer opens a crafted workspace or applies malicious workspace or user settings that modify executorMap, subsequent use of Code Runner can trigger execution of arbitrary shell commands in the context of the logged-in user. Reported affected versions include Code Runner v0.12.2, with multiple reports asserting that the issue may affect all versions.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in arbitrary command execution in the security context of the victim user running Visual Studio Code. This can enable full compromise of the developer workstation at the user privilege level, including execution of additional payloads, installation of persistence mechanisms, theft of source code and credentials, modification of local files, and use of the compromised development environment as a pivot for lateral movement.
Mitigation
If you can’t patch tonight, do this now.
Do not open untrusted workspaces or repositories with Code Runner enabled. Treat workspace-level and user-level settings.json content as untrusted input, especially configuration snippets obtained from email, chat, documentation, or public repositories. Enforce extension allowlisting, review .vscode settings changes with the same scrutiny as code changes, and use VS Code workspace trust and related restrictions to limit execution in untrusted projects. Where operationally feasible, disable or remove Code Runner until a verified fix is deployed.
Remediation
Patch, then assume compromise.
Upgrade to a vendor-fixed release of the Code Runner extension once available. A proper fix should eliminate shell-based command construction from untrusted configuration data, validate and constrain executorMap values, and avoid passing attacker-controlled strings into child_process APIs with shell execution enabled. If no patched version is available, uninstall or disable the Code Runner extension in affected environments.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-65715 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2025-65715 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-65715?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-65715.
- Is there a patch for CVE-2025-65715?
- Upgrade to a vendor-fixed release of the Code Runner extension once available. A proper fix should eliminate shell-based command construction from untrusted configuration data, validate and constrain executorMap values, and avoid passing attacker-controlled strings into child_process APIs with shell execution enabled.
- What products are affected by CVE-2025-65715?
- Formulahendry Code Runner.
- How severe is CVE-2025-65715?
- CVE-2025-65715 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.30% (15th percentile) as of Sep 25, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.