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

CVE-2025-21309: Windows Server 2012 RCE Vulnerability

CVE-2025-21309 is a remote code execution vulnerability in Windows Remote Desktop Services on Server 2012 that enables attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-21309 Overview

CVE-2025-21309 is a critical remote code execution vulnerability affecting Windows Remote Desktop Services (RDS). This vulnerability allows an unauthenticated attacker to execute arbitrary code on vulnerable Windows Server systems by sending specially crafted requests to the Remote Desktop Gateway service. The vulnerability stems from improper handling of stored sensitive data in session objects (CWE-591), which can be exploited over the network without requiring user interaction.

Critical Impact

Successful exploitation of this vulnerability could allow an attacker to gain complete control over affected Windows Server systems, potentially compromising enterprise infrastructure, accessing sensitive data, and establishing persistent access for lateral movement across the network.

Affected Products

  • Microsoft Windows Server 2012 (including R2)
  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 2022 23H2
  • Microsoft Windows Server 2025

Discovery Timeline

  • 2025-01-14 - CVE-2025-21309 published to NVD
  • 2025-01-24 - Last updated in NVD database

Technical Details for CVE-2025-21309

Vulnerability Analysis

This vulnerability resides within the Windows Remote Desktop Services component, which provides remote access capabilities for Windows Server environments. The flaw is classified under CWE-591 (Sensitive Data Storage in Improperly Locked Memory), indicating that sensitive data within RDS session management is not properly protected during runtime operations.

The vulnerability can be exploited over the network without requiring authentication or user interaction. However, the attack complexity is considered high, meaning successful exploitation requires specific conditions to be met or additional technical challenges must be overcome by the attacker. When successfully exploited, the vulnerability allows an attacker to achieve high impact across confidentiality, integrity, and availability—potentially leading to complete system compromise.

Remote Desktop Gateway services are commonly exposed to the internet in enterprise environments to provide secure remote access, making this vulnerability particularly concerning for organizations that have not yet applied the security update.

Root Cause

The root cause of this vulnerability lies in improper handling of sensitive data within Remote Desktop Services session management. Specifically, the vulnerability is associated with CWE-591, which indicates that sensitive data is stored in memory that is not properly locked or protected. This can allow an attacker to manipulate session data or access sensitive information that should be protected, ultimately leading to code execution in the context of the RDS service.

Attack Vector

The attack vector for CVE-2025-21309 is network-based, targeting the Remote Desktop Gateway service typically exposed on TCP port 443 or 3391. An attacker can exploit this vulnerability remotely without requiring any form of authentication or user interaction.

The exploitation process involves sending maliciously crafted requests to the Remote Desktop Gateway service. These requests target the vulnerable session handling mechanism, allowing the attacker to manipulate memory or session data in a way that leads to arbitrary code execution. While the attack complexity is high—requiring specific timing or conditions—the potential impact makes this a serious threat to any exposed RDS infrastructure.

Due to the sensitive nature of this vulnerability, specific exploitation details and proof-of-concept code are not publicly available. For detailed technical information, refer to the Microsoft Security Update Guide.

Detection Methods for CVE-2025-21309

Indicators of Compromise

  • Unusual connection patterns or high volumes of connections to Remote Desktop Gateway services (TCP 443/3391)
  • Unexpected process spawning from svchost.exe processes associated with Remote Desktop Services
  • Anomalous memory allocation patterns within RDS-related processes
  • Suspicious authentication failures followed by successful connections without proper credential exchange

Detection Strategies

  • Monitor Windows Event Logs for unusual Remote Desktop Gateway events, particularly errors or warnings in the Microsoft-Windows-TerminalServices-Gateway operational log
  • Implement network intrusion detection rules to identify malformed RDP/RDG protocol traffic
  • Deploy endpoint detection and response (EDR) solutions to monitor for suspicious process behavior associated with RDS components
  • Configure SIEM correlation rules to detect reconnaissance activities targeting RDS infrastructure

Monitoring Recommendations

  • Enable verbose logging for Remote Desktop Gateway services and forward logs to a centralized SIEM
  • Monitor network traffic for unusual patterns on RDS ports, including unexpected source IPs or connection frequencies
  • Implement behavioral analysis to detect anomalous process activity spawned by Remote Desktop Services
  • Regularly audit exposed RDS endpoints and ensure they are protected by network-level access controls

How to Mitigate CVE-2025-21309

Immediate Actions Required

  • Apply the January 2025 security updates from Microsoft immediately to all affected Windows Server systems
  • Restrict network access to Remote Desktop Gateway services using firewall rules and network segmentation
  • Enable Network Level Authentication (NLA) for all Remote Desktop Services to add an additional layer of protection
  • Audit and inventory all systems with Remote Desktop Gateway role enabled to ensure complete patch coverage
  • Consider temporarily disabling Remote Desktop Gateway services on internet-facing systems until patches are applied

Patch Information

Microsoft has released security updates addressing CVE-2025-21309 as part of the January 2025 Patch Tuesday release. Administrators should apply the appropriate update for their Windows Server version immediately. Detailed patch information and download links are available in the Microsoft Security Update Guide for CVE-2025-21309.

Workarounds

  • Implement network-level access controls to restrict Remote Desktop Gateway access to trusted IP ranges only
  • Deploy a VPN or Zero Trust Network Access (ZTNA) solution to limit RDS exposure to the internet
  • Enable NLA (Network Level Authentication) to require authentication before establishing RDS sessions
  • Monitor and rate-limit connections to Remote Desktop Gateway services to detect and block exploitation attempts
bash
# Example: Restrict RDS Gateway access using Windows Firewall
# Allow RDS Gateway only from trusted internal networks
netsh advfirewall firewall add rule name="RDS Gateway - Trusted Only" dir=in action=allow protocol=tcp localport=443 remoteip=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
netsh advfirewall firewall add rule name="Block External RDS Gateway" dir=in action=block protocol=tcp localport=443 remoteip=any

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.70%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-591

  • NVD-CWE-noinfo
  • Vendor Resources
  • Microsoft Security Update CVE-2025-21309
  • Related CVEs
  • CVE-2026-31995: Openclaw Command Injection Vulnerability

  • CVE-2026-25190: Windows GDI RCE Vulnerability

  • CVE-2026-25166: Windows System Image Manager RCE Flaw

  • CVE-2026-25173: Windows RRAS 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