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

CVE-2025-27487: Remote Desktop Client RCE Vulnerability

CVE-2025-27487 is a heap-based buffer overflow RCE vulnerability in Microsoft Remote Desktop Client that enables authorized attackers to execute code remotely. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-27487 Overview

CVE-2025-27487 is a heap-based buffer overflow vulnerability in the Microsoft Remote Desktop Client. An authorized attacker can exploit this flaw to execute arbitrary code over a network when a user connects to a malicious or compromised Remote Desktop Protocol (RDP) server. The vulnerability is tracked under [CWE-122] (Heap-based Buffer Overflow) and [CWE-787] (Out-of-bounds Write). Microsoft published the advisory on April 8, 2025, and the entry was last updated on July 7, 2025. The flaw affects the Remote Desktop Client, the Windows App, and the built-in RDP client across all supported Windows desktop and server releases.

Critical Impact

Successful exploitation allows remote code execution on the client machine with the privileges of the connected user, enabling full compromise of confidentiality, integrity, and availability.

Affected Products

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

Discovery Timeline

  • 2025-04-08 - CVE-2025-27487 published to NVD
  • 2025-04-08 - Microsoft releases security patch via Microsoft Security Update CVE-2025-27487
  • 2025-07-07 - Last updated in NVD database

Technical Details for CVE-2025-27487

Vulnerability Analysis

The vulnerability is a heap-based buffer overflow in the Remote Desktop Client. When the client processes data received from an RDP server, it writes data past the bounds of a heap-allocated buffer. This memory corruption can be steered to overwrite adjacent heap metadata or function pointers, redirecting execution flow to attacker-controlled code. Exploitation requires the victim to initiate or accept an RDP connection to a server controlled by the attacker. The attacker must hold valid authorization on the target RDP server, which is consistent with scenarios where adversaries stand up rogue RDP infrastructure or compromise legitimate jump hosts and lure users to connect.

Root Cause

The root cause lies in improper validation of length fields or message sizes during the parsing of RDP virtual channel or protocol data on the client side. The client allocates a heap buffer based on expected data dimensions but fails to enforce strict bounds when copying server-supplied data into it. This out-of-bounds write ([CWE-787]) corrupts heap structures and enables code execution.

Attack Vector

The attack vector is network-based and requires user interaction. A user must connect their Remote Desktop Client to a malicious server. The attacker then returns crafted RDP responses that trigger the overflow during session negotiation or virtual channel processing. Because execution occurs in the context of the client user, an attacker who controls a server commonly used by administrators can gain code execution on privileged workstations.

No public proof-of-concept exploit is currently available, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. See the Microsoft Security Update CVE-2025-27487 for vendor technical details.

Detection Methods for CVE-2025-27487

Indicators of Compromise

  • Crashes, exceptions, or unexpected terminations of mstsc.exe or the Windows App immediately after connecting to an RDP server.
  • Outbound RDP (TCP/3389) connections from user workstations to untrusted or newly observed external IP addresses.
  • Child processes spawned by mstsc.exe that are not part of normal RDP client behavior, such as cmd.exe, powershell.exe, or rundll32.exe.
  • Heap corruption events in Windows Error Reporting telemetry referencing Remote Desktop Client modules.

Detection Strategies

  • Hunt for anomalous process lineage where mstsc.exe is the parent of script interpreters, LOLBins, or unsigned binaries.
  • Correlate RDP client crash events (Application Error 1000) with subsequent network connections or file writes by the same user session.
  • Inspect EDR telemetry for memory protection violations and access-violation exceptions inside Remote Desktop Client modules.

Monitoring Recommendations

  • Restrict and log outbound RDP connections at the perimeter and only permit them to known, trusted destinations.
  • Enable command-line and module load auditing on endpoints that frequently initiate RDP sessions, particularly administrator workstations.
  • Forward Sysmon and Windows Defender Exploit Guard events to a centralized data lake for retroactive hunting once additional indicators emerge.

How to Mitigate CVE-2025-27487

Immediate Actions Required

  • Apply the April 2025 Microsoft security updates for all affected Windows client and server versions immediately.
  • Update the Windows App and standalone Remote Desktop Client packages on managed and BYOD devices.
  • Inventory all systems running legacy Windows Server 2008 R2 and Server 2012 to confirm they receive the relevant Extended Security Update.
  • Block outbound RDP to untrusted networks and require RDP traffic to traverse a Remote Desktop Gateway.

Patch Information

Microsoft released fixes through the April 8, 2025 Patch Tuesday cycle. Administrators should consult the Microsoft Security Update CVE-2025-27487 advisory for the specific KB articles and build numbers that apply to each affected operating system.

Workarounds

  • Prohibit users from initiating RDP sessions to servers outside the corporate network or unmanaged hosts.
  • Enforce egress filtering to block TCP/3389 and UDP/3389 to arbitrary internet destinations.
  • Require RDP connections to authenticate through a hardened Remote Desktop Gateway with Network Level Authentication enforced.
  • Use application control policies to restrict execution of child processes spawned by mstsc.exe.
bash
# Configuration example: block outbound RDP except to approved gateway
New-NetFirewallRule -DisplayName "Block Outbound RDP" `
  -Direction Outbound -Protocol TCP -RemotePort 3389 `
  -Action Block -Profile Any

New-NetFirewallRule -DisplayName "Allow RDP to Gateway" `
  -Direction Outbound -Protocol TCP -RemotePort 3389 `
  -RemoteAddress 10.10.10.5 -Action Allow -Profile Any

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMicrosoft Remote Desktop Client

  • SeverityHIGH

  • CVSS Score8.0

  • EPSS Probability0.31%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-122

  • CWE-787
  • Vendor Resources
  • Microsoft Security Update CVE-2025-27487
  • Related CVEs
  • CVE-2024-38131: Remote Desktop Client RCE Vulnerability

  • CVE-2024-49105: Microsoft Remote Desktop Client RCE Flaw

  • CVE-2021-34535: Microsoft Remote Desktop Client RCE Flaw

  • CVE-2026-32157: Remote Desktop Client UAF 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