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

CVE-2025-27480: Windows Server 2012 RCE Vulnerability

CVE-2025-27480 is a use-after-free remote code execution vulnerability in Microsoft Windows Server 2012's Remote Desktop Gateway Service. Attackers can exploit this flaw to execute code over a network without authorization.

Updated: January 22, 2026

CVE-2025-27480 Overview

CVE-2025-27480 is a use-after-free vulnerability in Microsoft's Remote Desktop Gateway Service that allows an unauthorized attacker to execute arbitrary code over a network. The Remote Desktop Gateway (RD Gateway) is a critical Windows Server component that enables secure remote connections to internal network resources through HTTPS tunneling. This vulnerability affects multiple generations of Windows Server, making it a significant concern for enterprise environments relying on remote access infrastructure.

The flaw exists in how the RD Gateway Service handles memory operations during connection processing. An attacker can exploit this vulnerability remotely without authentication, potentially gaining the ability to execute malicious code in the context of the vulnerable service.

Critical Impact

Successful exploitation could allow an unauthenticated remote attacker to execute arbitrary code on affected Windows Server systems running the Remote Desktop Gateway role, potentially compromising the entire remote access infrastructure.

Affected Products

  • Microsoft Windows Server 2012 and 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-04-08 - CVE-2025-27480 published to NVD
  • 2025-07-08 - Last updated in NVD database

Technical Details for CVE-2025-27480

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption flaw that occurs when a program continues to reference memory after it has been freed. In the context of the Remote Desktop Gateway Service, this creates a dangerous condition where an attacker can manipulate the freed memory region to achieve code execution.

The Remote Desktop Gateway Service processes incoming connections from remote clients, managing complex state transitions and memory allocations during the connection lifecycle. The use-after-free condition arises when the service improperly handles memory during these operations, leaving a dangling pointer that references deallocated memory.

While exploitation requires winning a race condition (indicated by the high attack complexity), the vulnerability requires no authentication or user interaction, making it particularly dangerous for internet-exposed RD Gateway servers. Successful exploitation could lead to complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause is improper memory lifecycle management in the Remote Desktop Gateway Service. Specifically, the service fails to properly nullify or validate pointers after freeing associated memory objects. When subsequent operations attempt to use these stale pointers, the freed memory region—potentially now containing attacker-controlled data—is accessed as if it were still valid, leading to memory corruption and potential code execution.

Attack Vector

The attack vector is network-based, targeting the Remote Desktop Gateway Service which typically listens on TCP port 443 (HTTPS). An attacker can reach vulnerable systems over the network without requiring any credentials or user interaction.

The exploitation mechanism involves:

  1. Target Identification: Attacker identifies Windows Servers running the RD Gateway role
  2. Malicious Connection: Attacker initiates specially crafted connections to trigger the use-after-free condition
  3. Memory Manipulation: The freed memory is reallocated with attacker-controlled content
  4. Code Execution: When the dangling pointer is dereferenced, the attacker's payload executes

Due to the race condition requirement, reliable exploitation may require multiple attempts. However, the lack of authentication requirements means attackers can repeatedly attempt exploitation without triggering account lockouts. The vulnerability mechanism involves improper memory handling during RD Gateway connection processing. Technical details are available in the Microsoft Security Advisory.

Detection Methods for CVE-2025-27480

Indicators of Compromise

  • Unexpected crashes or restarts of the Remote Desktop Gateway Service (TSGateway)
  • Anomalous memory consumption patterns in the TSGateway process
  • Unusual network traffic patterns on port 443 to RD Gateway servers
  • Windows Event Log entries indicating service failures or access violations in the RD Gateway Service

Detection Strategies

  • Monitor Windows Event Logs for RD Gateway Service crashes (Event ID 1000 in Application log with faulting module information)
  • Implement network intrusion detection rules to identify anomalous RDP over HTTPS traffic patterns
  • Deploy endpoint detection and response (EDR) solutions capable of detecting use-after-free exploitation attempts
  • Configure Windows Defender Exploit Guard with Attack Surface Reduction rules for Remote Desktop services

Monitoring Recommendations

  • Enable enhanced logging for the Remote Desktop Gateway Service and correlate with SIEM platforms
  • Implement real-time monitoring of RD Gateway process memory behavior for anomaly detection
  • Configure alerts for multiple failed RD Gateway connection attempts from single sources
  • Review RD Gateway connection logs for unusual client identifiers or connection patterns

How to Mitigate CVE-2025-27480

Immediate Actions Required

  • Apply the latest Microsoft security updates for all affected Windows Server versions immediately
  • Review and restrict network access to RD Gateway servers, limiting exposure to trusted IP ranges where possible
  • Ensure RD Gateway servers are not directly exposed to the internet without additional protective layers
  • Implement network segmentation to limit lateral movement potential if a gateway server is compromised

Patch Information

Microsoft has released security updates to address this vulnerability. Administrators should apply the appropriate patches for their Windows Server versions as outlined in the Microsoft Security Response Center advisory. The patches correct the memory management issue by ensuring proper validation and nullification of pointers after memory deallocation.

Organizations should prioritize patching based on exposure level, with internet-facing RD Gateway servers receiving highest priority.

Workarounds

  • If the Remote Desktop Gateway role is not required, disable or remove it from affected servers
  • Place RD Gateway servers behind a web application firewall (WAF) or reverse proxy with rate limiting capabilities
  • Implement IP allowlisting to restrict access to the RD Gateway from known, trusted networks only
  • Consider using alternative remote access solutions such as VPN or Azure AD Application Proxy while patches are being tested and deployed
bash
# PowerShell: Check if RD Gateway role is installed
Get-WindowsFeature -Name RDS-Gateway

# PowerShell: Disable RD Gateway service if not needed
Stop-Service -Name TSGateway -Force
Set-Service -Name TSGateway -StartupType Disabled

# PowerShell: Configure Windows Firewall to restrict RD Gateway access
New-NetFirewallRule -DisplayName "Restrict RD Gateway" -Direction Inbound -LocalPort 443 -Protocol TCP -RemoteAddress "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" -Action Allow

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.42%

  • 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-416
  • Vendor Resources
  • Microsoft CVE-2025-27480 Advisory
  • 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