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-2020-17148

CVE-2020-17148: Visual Studio Code RCE Vulnerability

CVE-2020-17148 is a remote code execution vulnerability in Microsoft Visual Studio Code Remote Development Extension that enables attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-17148 Overview

CVE-2020-17148 is a Remote Code Execution (RCE) vulnerability affecting Microsoft Visual Studio Code's Remote Development Extension. This security flaw allows attackers to execute arbitrary code on systems running vulnerable versions of the Remote-SSH extension, potentially leading to complete system compromise.

Critical Impact

Successful exploitation enables attackers to execute arbitrary code with the privileges of the user running Visual Studio Code, potentially leading to full system compromise, data theft, and lateral movement within networks.

Affected Products

  • Microsoft Visual Studio Code
  • Visual Studio Code Remote-SSH Extension
  • Visual Studio Code Remote Development Extension

Discovery Timeline

  • 2020-12-10 - CVE-2020-17148 published to NVD
  • 2025-08-28 - Last updated in NVD database

Technical Details for CVE-2020-17148

Vulnerability Analysis

This vulnerability exists in the Visual Studio Code Remote Development Extension, specifically within the Remote-SSH component. The flaw allows for remote code execution through a local attack vector that requires user interaction. The vulnerability stems from improper handling of input within the extension's remote connection workflow.

When a user interacts with a maliciously crafted configuration or connects to a compromised remote host, the attacker can leverage this vulnerability to execute arbitrary code on the victim's local machine. The impact is severe, potentially resulting in complete compromise of confidentiality, integrity, and availability of the affected system.

The attack requires local access and some form of user interaction, which may involve tricking a user into opening a malicious workspace, connecting to a compromised SSH server, or processing a specially crafted configuration file.

Root Cause

The root cause of this vulnerability has not been fully disclosed by Microsoft (classified as NVD-CWE-noinfo). However, based on the vulnerability characteristics, it likely involves improper validation or sanitization of data processed by the Remote-SSH extension during remote connection operations. This may include insufficient validation of remote server responses, configuration file parsing issues, or inadequate sandboxing of extension operations.

Attack Vector

The attack vector for CVE-2020-17148 is local, requiring an attacker to either have local access to the target system or trick a user into performing specific actions. The exploitation scenario typically involves:

  1. An attacker prepares a malicious configuration, workspace file, or compromised remote SSH server
  2. The victim opens VS Code with the vulnerable Remote Development Extension installed
  3. The victim connects to the malicious remote endpoint or opens the crafted workspace
  4. The vulnerability is triggered, executing attacker-controlled code with the victim's privileges

The vulnerability does not require elevated privileges to exploit, making it accessible to a wide range of threat actors. For detailed technical information, refer to the Microsoft Security Advisory.

Detection Methods for CVE-2020-17148

Indicators of Compromise

  • Unexpected child processes spawned by VS Code or its remote extensions
  • Suspicious network connections initiated from VS Code to unknown or untrusted SSH endpoints
  • Unusual file system activity in VS Code extension directories or user workspaces
  • Anomalous command-line arguments passed to VS Code or related processes

Detection Strategies

  • Monitor VS Code extension installation and update activities for unauthorized changes to the Remote Development Extension
  • Implement application whitelisting to detect unauthorized code execution from VS Code process context
  • Deploy endpoint detection rules to identify suspicious process trees originating from VS Code
  • Analyze SSH connection logs for connections to unknown or suspicious remote hosts

Monitoring Recommendations

  • Enable detailed logging for VS Code extension activities and remote connection events
  • Configure SIEM alerts for unusual VS Code process behavior or unexpected network connections
  • Implement file integrity monitoring on VS Code extension directories
  • Regularly audit installed VS Code extensions and their versions across the enterprise

How to Mitigate CVE-2020-17148

Immediate Actions Required

  • Update Visual Studio Code and the Remote Development Extension to the latest available versions
  • Review and audit all configured remote SSH connections for legitimacy
  • Restrict VS Code extension installations to vetted and approved extensions only
  • Educate users about the risks of connecting to untrusted remote hosts or opening unknown workspaces

Patch Information

Microsoft has released security updates to address this vulnerability. Administrators should ensure that Visual Studio Code and the Remote-SSH extension are updated to patched versions. Refer to the Microsoft Security Update Guide for specific version information and patch details.

The update is typically delivered through VS Code's built-in extension update mechanism. Users should verify that automatic updates are enabled or manually update extensions through the Extensions panel.

Workarounds

  • If patching is not immediately possible, consider temporarily disabling or uninstalling the Remote Development Extension until updates can be applied
  • Implement network segmentation to limit SSH connectivity from developer workstations to only approved remote hosts
  • Deploy application control policies to restrict VS Code's ability to execute arbitrary code or spawn child processes
  • Use a dedicated, hardened system for remote development activities that is isolated from sensitive corporate resources
bash
# Verify VS Code Remote-SSH extension version
code --list-extensions --show-versions | grep remote-ssh

# Disable Remote-SSH extension temporarily (if needed)
code --disable-extension ms-vscode-remote.remote-ssh

# Update all VS Code extensions to latest versions
code --update-extensions

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 Probability11.15%

  • 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
  • Technical References
  • Microsoft CVE-2020-17148 Update
  • Vendor Resources
  • Microsoft CVE-2020-17148 Advisory
  • Related CVEs
  • CVE-2020-17023: Visual Studio Code RCE Vulnerability

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

  • CVE-2022-30129: Visual Studio Code RCE Vulnerability

  • CVE-2023-36742: 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