A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-49714

CVE-2025-49714: Microsoft Python Extension RCE Vulnerability

CVE-2025-49714 is a remote code execution vulnerability in the Visual Studio Code Python extension caused by a trust boundary violation. Attackers can exploit this to execute unauthorized code locally on affected systems.

Published: May 26, 2026

CVE-2025-49714 Overview

CVE-2025-49714 is a trust boundary violation [CWE-501] in the Microsoft Python extension for Visual Studio Code. An unauthorized attacker can execute code locally on a victim system when the user interacts with attacker-controlled content. The flaw stems from the extension processing data across trust boundaries without proper validation. Microsoft published the advisory on July 8, 2025, and the issue affects Visual Studio Code environments where the Python extension is installed. Exploitation requires user interaction but does not require prior authentication on the target system.

Critical Impact

Successful exploitation grants attackers local code execution with the privileges of the Visual Studio Code user, enabling full compromise of confidentiality, integrity, and availability on the affected workstation.

Affected Products

  • Microsoft Python extension for Visual Studio Code
  • Visual Studio Code installations with the Python extension enabled
  • Developer workstations relying on the affected extension version

Discovery Timeline

  • 2025-07-08 - CVE-2025-49714 published to NVD
  • 2025-07-16 - Last updated in NVD database

Technical Details for CVE-2025-49714

Vulnerability Analysis

The vulnerability is classified under [CWE-501] Trust Boundary Violation. The Python extension mixes trusted and untrusted data within the same data structure or execution context. When Visual Studio Code loads a workspace, the extension processes configuration and project artifacts as if they originated from a trusted source. An attacker can craft repository content that crosses this boundary and triggers code execution when the developer opens the workspace.

The attack vector is local with low complexity. No privileges are required, but the user must perform an action such as opening a malicious workspace or file. The scope is unchanged, and the impact to confidentiality, integrity, and availability is high.

Root Cause

The root cause is improper enforcement of trust boundaries within the Python extension. Data that should be treated as untrusted, such as workspace settings, Python interpreter paths, or project files, is consumed by privileged code paths without sufficient validation. This allows attacker-supplied input to influence execution flow inside the extension host.

Attack Vector

A typical exploitation scenario involves an attacker distributing a malicious repository, archive, or project folder. When the victim clones or opens the project in Visual Studio Code with the Python extension active, the extension parses workspace metadata and executes attacker-controlled logic. The code runs under the developer's account, providing access to local files, credentials, source code, and network resources reachable from the workstation. Detailed technical analysis is available in the Microsoft CVE-2025-49714 Advisory.

Detection Methods for CVE-2025-49714

Indicators of Compromise

  • Unexpected child processes spawned by Code.exe or the Python extension host, particularly shells, python.exe, or powershell.exe executing immediately after a workspace is opened
  • Newly created files in the workspace .vscode directory containing suspicious Python interpreter paths or task definitions
  • Outbound network connections from Visual Studio Code processes to unfamiliar hosts shortly after project load

Detection Strategies

  • Monitor process lineage where Visual Studio Code launches scripting interpreters with command-line arguments referencing workspace-relative paths
  • Alert on modifications to settings.json, launch.json, or tasks.json within repositories cloned from untrusted sources
  • Inspect installed Python extension versions across managed endpoints and flag versions predating Microsoft's July 2025 update

Monitoring Recommendations

  • Forward endpoint process telemetry and file integrity events to a centralized SIEM for correlation against developer workstation baselines
  • Track Visual Studio Code extension inventory and update status through endpoint management tooling
  • Review developer machine activity for first-time execution of binaries originating from cloned repositories

How to Mitigate CVE-2025-49714

Immediate Actions Required

  • Update the Microsoft Python extension in Visual Studio Code to the latest available version through the Extensions marketplace
  • Audit developer endpoints for the affected extension version and prioritize patching machines that handle untrusted repositories
  • Enable Visual Studio Code Workspace Trust and require explicit approval before executing code from newly opened folders

Patch Information

Microsoft addressed the issue in an updated release of the Python extension for Visual Studio Code. Refer to the Microsoft CVE-2025-49714 Advisory for the fixed version and rollout guidance. Apply the update through Visual Studio Code's auto-update mechanism or redeploy the extension via centralized configuration management.

Workarounds

  • Disable the Python extension on systems where the patch cannot be applied immediately
  • Avoid opening untrusted repositories, archives, or shared folders in Visual Studio Code until the extension is updated
  • Restrict Workspace Trust to a small set of vetted directories and treat all other workspaces as untrusted by default
bash
# Configuration example: update the Python extension via CLI
code --install-extension ms-python.python --force

# Verify the installed version
code --list-extensions --show-versions | grep ms-python.python

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Python

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.79%

  • 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-501
  • Vendor Resources
  • Microsoft CVE-2025-49714 Advisory
  • Related CVEs
  • CVE-2024-49050: Microsoft Python Extension RCE Vulnerability

  • CVE-2020-17163: Microsoft Python Extension RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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