The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-65715

CVE-2025-65715: VS Code Code Runner RCE Vulnerability

CVE-2025-65715 is a remote code execution flaw in Visual Studio Code Code Runner extension v0.12.2 that allows attackers to execute arbitrary code via crafted workspaces. This article covers technical details, impact, and mitigation.

Published: February 20, 2026

CVE-2025-65715 Overview

A code injection vulnerability exists in the code-runner.executorMap setting of Visual Studio Code Extensions Code Runner v0.12.2. This vulnerability allows attackers to execute arbitrary code when a user opens a crafted workspace. The issue stems from improper validation of workspace settings, enabling malicious workspace configurations to inject and execute arbitrary commands through the executor mapping functionality.

Critical Impact

Attackers can achieve arbitrary code execution on developer workstations by distributing malicious workspace files, potentially compromising source code, credentials, and development infrastructure.

Affected Products

  • Visual Studio Code Extensions Code Runner v0.12.2
  • VS Code environments with Code Runner extension installed

Discovery Timeline

  • 2026-02-16 - CVE CVE-2025-65715 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2025-65715

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code), commonly known as Code Injection. The Code Runner extension for Visual Studio Code provides functionality to execute code snippets directly from the editor. The extension uses an executorMap configuration setting that maps file types to their corresponding execution commands.

The vulnerability exists because the extension does not properly sanitize or validate the values in the executorMap setting when loaded from workspace configuration files (.vscode/settings.json). An attacker can craft a malicious workspace that contains specially crafted executor mappings designed to execute arbitrary commands when a user opens the workspace and attempts to run any code.

This attack requires local access—meaning the victim must download and open a malicious workspace file. User interaction is required to trigger the exploitation, as the victim needs to execute code using the Code Runner extension after opening the compromised workspace.

Root Cause

The root cause of this vulnerability lies in the insufficient validation of user-controllable workspace settings. The Code Runner extension trusts the executorMap configuration values without proper sanitization, allowing command injection through maliciously crafted executor definitions. When the extension processes these settings to build execution commands, the injected payload is passed directly to the system shell for execution.

Attack Vector

The attack vector requires local access through social engineering or supply chain compromise. An attacker would distribute a malicious workspace (such as through a cloned repository, shared project files, or phishing) containing a crafted .vscode/settings.json file. When a developer opens this workspace in VS Code with the Code Runner extension installed and attempts to run code, the malicious executor mapping triggers arbitrary command execution.

The malicious workspace configuration would override the legitimate executor mappings with payloads that execute attacker-controlled commands alongside or instead of the intended code execution. This could be used to establish persistence, exfiltrate sensitive data, or compromise the development environment.

Detection Methods for CVE-2025-65715

Indicators of Compromise

  • Unexpected modifications to .vscode/settings.json files containing unusual code-runner.executorMap entries
  • Suspicious command execution spawned from VS Code processes
  • Unusual network connections or file system access originating from the VS Code application
  • Presence of encoded or obfuscated strings within workspace configuration files

Detection Strategies

  • Monitor for child processes spawned by VS Code that execute unexpected commands or access sensitive resources
  • Implement file integrity monitoring on .vscode/settings.json files within development workspaces
  • Deploy endpoint detection rules to identify suspicious command patterns in executorMap configurations
  • Review VS Code extension settings for unauthorized modifications after opening external workspaces

Monitoring Recommendations

  • Enable logging for VS Code extension activities and review for anomalous behavior
  • Implement workspace trust policies to prompt users before executing code in untrusted workspaces
  • Deploy SentinelOne Singularity Platform to detect and prevent malicious command execution chains
  • Establish baseline behavior for developer workstations to identify deviations indicative of compromise

How to Mitigate CVE-2025-65715

Immediate Actions Required

  • Update the Code Runner extension to the latest available version when a patch is released
  • Enable VS Code's Workspace Trust feature to restrict execution capabilities in untrusted workspaces
  • Review and audit existing .vscode/settings.json files in all active workspaces for suspicious configurations
  • Consider temporarily disabling the Code Runner extension until a patch is available

Patch Information

At the time of publication, users should monitor the GitHub VS Code Runner Repository for security updates and patch releases. Additional technical analysis is available from OX Security Blog CVE-2025-65715 Analysis.

Workarounds

  • Enable VS Code Workspace Trust and mark all external or untrusted workspaces accordingly
  • Remove or reset code-runner.executorMap settings to default values in workspace configurations
  • Use User Settings instead of Workspace Settings for Code Runner configuration to prevent workspace-level overrides
  • Implement organizational policies restricting the sources from which developers can clone or open workspaces
bash
# Configuration example - Enable Workspace Trust in VS Code settings.json (User Settings)
# Add the following to prevent automatic trust of workspaces:
{
  "security.workspace.trust.enabled": true,
  "security.workspace.trust.untrustedFiles": "prompt",
  "security.workspace.trust.startupPrompt": "always"
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVisual Studio Code

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub VS Code Runner Repository

  • OX Security Blog CVE-2025-65715 Analysis
  • Related CVEs
  • CVE-2025-65716: VS Code Markdown Preview Enhanced RCE Flaw

  • CVE-2025-8217: Amazon Q Developer VS Code Extension RCE

  • CVE-2025-65717: VS Code Live Server XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English