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-2023-36742

CVE-2023-36742: Visual Studio Code RCE Vulnerability

CVE-2023-36742 is a remote code execution vulnerability in Microsoft Visual Studio Code that enables attackers to execute arbitrary code. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 11, 2026

CVE-2023-36742 Overview

CVE-2023-36742 is a Remote Code Execution (RCE) vulnerability affecting Microsoft Visual Studio Code. This vulnerability allows an attacker to execute arbitrary code on a victim's system when a user opens a maliciously crafted file or workspace in VS Code. The attack requires local access and user interaction, making social engineering a likely attack vector for exploitation.

Critical Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code with the privileges of the current user, potentially leading to complete system compromise, data theft, or lateral movement within an organization's network.

Affected Products

  • Microsoft Visual Studio Code (all versions prior to patch)

Discovery Timeline

  • September 12, 2023 - CVE-2023-36742 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-36742

Vulnerability Analysis

This Remote Code Execution vulnerability in Visual Studio Code stems from improper handling of certain file types or workspace configurations. VS Code, being a highly extensible code editor with deep integration into development workflows, processes various file formats and configuration files that could be manipulated by an attacker.

The vulnerability requires user interaction—specifically, opening a malicious file or workspace—and local access to the system. This attack pattern is commonly exploited through phishing campaigns where developers are tricked into opening legitimate-looking project files or cloning malicious repositories.

Root Cause

Microsoft has not disclosed the specific technical root cause of this vulnerability (classified as NVD-CWE-noinfo). However, based on the attack characteristics, the vulnerability likely resides in how VS Code parses or executes certain file types, workspace settings, or extension-related functionality. Code editors often execute scripts or process configuration files automatically, which can be abused if input validation is insufficient.

Attack Vector

The attack vector is local, requiring the attacker to convince a user to open a malicious file or workspace. Typical exploitation scenarios include:

  1. Malicious Repository - An attacker creates a seemingly legitimate open-source project containing malicious workspace configuration files
  2. Phishing Attachment - A crafted file sent via email that, when opened in VS Code, triggers code execution
  3. Supply Chain Attack - Compromising a legitimate project with malicious VS Code workspace files

The vulnerability mechanism involves VS Code processing untrusted input that leads to arbitrary code execution. For technical implementation details, refer to the Microsoft Security Update Guide.

Detection Methods for CVE-2023-36742

Indicators of Compromise

  • Unexpected child processes spawned by code.exe or VS Code processes
  • Unusual file system access patterns originating from VS Code
  • Network connections initiated by VS Code to suspicious external addresses
  • Presence of unusual or newly created workspace files (.vscode/ directory) in project folders

Detection Strategies

  • Monitor VS Code process behavior for execution of unexpected commands or scripts
  • Implement file integrity monitoring on .vscode/ directories and workspace configuration files
  • Enable endpoint detection rules for child process creation from VS Code binaries
  • Audit recently opened files and workspaces in VS Code user settings

Monitoring Recommendations

  • Deploy application behavior analytics to detect anomalous VS Code activity
  • Configure SIEM rules to alert on suspicious process trees originating from code editor processes
  • Implement network monitoring for VS Code processes connecting to untrusted destinations
  • Review VS Code extension installations and workspace trust settings regularly

How to Mitigate CVE-2023-36742

Immediate Actions Required

  • Update Microsoft Visual Studio Code to the latest patched version immediately
  • Enable VS Code's Workspace Trust feature to restrict automatic code execution in untrusted folders
  • Review and audit recently opened workspaces and files for suspicious content
  • Implement application allowlisting to control VS Code extension installations
  • Educate development teams about the risks of opening untrusted projects or files

Patch Information

Microsoft has released a security update to address CVE-2023-36742. Organizations should update VS Code through the built-in update mechanism or by downloading the latest version from the official Microsoft website. The security advisory with patch details is available at the Microsoft Security Response Center.

Workarounds

  • Enable Workspace Trust in VS Code settings to require explicit user approval before executing code in new workspaces
  • Disable automatic extension installation and restrict to vetted extensions only
  • Use restricted mode when opening files from untrusted sources
  • Configure VS Code to prompt before opening links or executing terminal commands
bash
# VS Code settings.json configuration to enhance security
# Add these settings to ~/.config/Code/User/settings.json (Linux)
# or %APPDATA%\Code\User\settings.json (Windows)

# Enable Workspace Trust (requires user approval for untrusted folders)
"security.workspace.trust.enabled": true
"security.workspace.trust.startupPrompt": "always"
"security.workspace.trust.untrustedFiles": "prompt"

# Restrict automatic extension recommendations
"extensions.autoCheckUpdates": true
"extensions.autoUpdate": false

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Visual Studio Code

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.24%

  • 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
  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Update CVE-2023-36742
  • Related CVEs
  • CVE-2020-17023: Visual Studio Code RCE Vulnerability

  • CVE-2025-55319: Visual Studio Code RCE Vulnerability

  • CVE-2020-17148: Visual Studio Code RCE Vulnerability

  • CVE-2022-30129: Visual Studio Code RCE 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