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-58718

CVE-2025-58718: Remote Desktop Client Use After Free Flaw

CVE-2025-58718 is a use after free vulnerability in Microsoft Remote Desktop Client that enables attackers to execute arbitrary code remotely. This article covers the technical details, affected versions, impact, and mitigation.

Published: April 1, 2026

CVE-2025-58718 Overview

CVE-2025-58718 is a use-after-free vulnerability in Microsoft Remote Desktop Client that allows an unauthorized attacker to execute arbitrary code over a network. This memory corruption flaw occurs when the Remote Desktop Client improperly handles objects in memory, enabling attackers to leverage freed memory regions to gain code execution capabilities on targeted systems.

Critical Impact

This use-after-free vulnerability allows remote code execution without requiring authentication, potentially enabling complete system compromise across a wide range of Windows client and server operating systems.

Affected Products

  • Microsoft Remote Desktop Client
  • Microsoft Windows App
  • Microsoft Windows 10 (versions 1507, 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (versions 22H2, 23H2, 24H2, 25H2)
  • Microsoft Windows Server 2008 (SP2 and R2 SP1)
  • Microsoft Windows Server 2012 and 2012 R2
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022 and 2022 23H2
  • Microsoft Windows Server 2025

Discovery Timeline

  • October 14, 2025 - CVE-2025-58718 published to NVD
  • October 31, 2025 - Last updated in NVD database

Technical Details for CVE-2025-58718

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption class where a program continues to reference memory after it has been freed. In the context of the Remote Desktop Client, this occurs during the handling of network-based RDP session data, where memory objects are deallocated but subsequently accessed by other parts of the application.

The use-after-free condition creates an opportunity for attackers to manipulate the freed memory region, potentially placing controlled data in the same location. When the application later accesses this memory, it operates on attacker-controlled content, leading to code execution in the context of the Remote Desktop Client process.

The vulnerability requires user interaction, specifically that a user connects to a malicious RDP server or processes malicious RDP data. However, the attack can be executed over the network without requiring prior authentication, making it particularly dangerous in environments where users may connect to untrusted remote systems.

Root Cause

The root cause lies in improper memory lifecycle management within the Remote Desktop Client's object handling routines. When certain RDP protocol elements are processed, memory is allocated for associated objects. Due to a logic error, these objects may be freed prematurely while references to them still exist elsewhere in the code. Subsequent operations that attempt to use these dangling references trigger the use-after-free condition.

This type of vulnerability typically stems from complex object lifetime management in C/C++ code, where manual memory management creates opportunities for temporal memory safety violations.

Attack Vector

The attack vector is network-based, requiring an attacker to either:

  1. Host a malicious RDP server that exploits the vulnerability when a victim connects to it
  2. Perform a man-in-the-middle attack to inject malicious RDP protocol data into an existing connection

When a user initiates a Remote Desktop connection to the attacker-controlled server, specially crafted RDP protocol messages trigger the use-after-free condition. The attacker can carefully manipulate heap memory to place executable shellcode or ROP gadgets in the freed memory region. Upon the dangling reference being accessed, control flow is redirected to the attacker's payload, achieving arbitrary code execution with the privileges of the Remote Desktop Client process.

The vulnerability is particularly concerning because RDP is commonly used in enterprise environments for remote system administration and virtual desktop infrastructure (VDI) scenarios.

Detection Methods for CVE-2025-58718

Indicators of Compromise

  • Unexpected crashes or abnormal termination of mstsc.exe or Windows App Remote Desktop processes
  • Heap corruption detection events in Windows Error Reporting related to Remote Desktop Client
  • Network connections from Remote Desktop Client to unusual or unknown external IP addresses
  • Suspicious child processes spawned by Remote Desktop Client executables

Detection Strategies

  • Monitor for anomalous RDP client behavior including unexpected process crashes or memory access violations
  • Implement network monitoring to detect connections to known malicious RDP servers or suspicious external endpoints
  • Deploy endpoint detection and response (EDR) solutions to identify exploitation attempts targeting memory corruption vulnerabilities
  • Enable Windows Defender Exploit Guard memory protection features to detect and block use-after-free exploitation techniques

Monitoring Recommendations

  • Configure Windows Event Log monitoring for Application Error events (Event ID 1000) involving mstsc.exe or msrdc.exe
  • Implement network traffic analysis to baseline normal RDP connection patterns and alert on deviations
  • Monitor for suspicious process creation chains originating from Remote Desktop Client processes
  • Enable heap integrity monitoring where available to detect corruption attempts

How to Mitigate CVE-2025-58718

Immediate Actions Required

  • Apply Microsoft security updates for affected Windows versions and Remote Desktop Client immediately
  • Restrict Remote Desktop Client connections to known, trusted RDP servers only
  • Implement network segmentation to limit exposure of systems with Remote Desktop Client installed
  • Consider disabling Remote Desktop Client functionality on systems that do not require it

Patch Information

Microsoft has released security updates to address CVE-2025-58718. Organizations should apply the appropriate patches for their affected systems as outlined in the Microsoft Security Update Guide.

The patches address the underlying memory management issue by ensuring proper object lifecycle handling and preventing access to freed memory regions within the Remote Desktop Client.

Workarounds

  • Block outbound RDP connections (TCP port 3389) to untrusted networks at the firewall level
  • Use application allowlisting to control which systems can execute Remote Desktop Client
  • Implement network-level authentication (NLA) requirements for all RDP connections to add an authentication barrier
  • Deploy web content filtering to prevent users from clicking malicious RDP links or connection files
bash
# Block outbound RDP to external networks via Windows Firewall
netsh advfirewall firewall add rule name="Block External RDP Out" dir=out action=block protocol=tcp remoteport=3389 remoteip=any localip=any

# Verify Remote Desktop Client version (ensure patched version is installed)
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object {$_.DisplayName -like "*Remote Desktop*"} | Select-Object DisplayName, DisplayVersion

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechMicrosoft Remote Desktop Client

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Vendor Resources
  • Microsoft Security Update CVE-2025-58718
  • Related CVEs
  • CVE-2025-48817: Remote Desktop Client Path Traversal Flaw

  • CVE-2023-28267: Remote Desktop Client Info Disclosure Flaw

  • CVE-2025-32715: Remote Desktop Client Info Disclosure

  • CVE-2024-38131: Remote Desktop Client 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