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

CVE-2025-27482: Windows Server 2016 RCE Vulnerability

CVE-2025-27482 is a remote code execution vulnerability in Microsoft Windows Server 2016 affecting the Remote Desktop Gateway Service. Attackers can exploit improperly locked memory to execute code remotely over a network.

Updated: January 22, 2026

CVE-2025-27482 Overview

CVE-2025-27482 is a critical memory management vulnerability in the Windows Remote Desktop Gateway Service that enables unauthorized attackers to execute arbitrary code over a network. The flaw stems from sensitive data storage in improperly locked memory, classified under CWE-591 (Sensitive Data Storage in Improperly Locked Memory). This vulnerability affects multiple versions of Microsoft Windows Server and poses a significant risk to enterprise environments that rely on Remote Desktop Gateway for secure remote access.

Critical Impact

Successful exploitation allows unauthenticated attackers to achieve remote code execution on affected Windows Server systems running the Remote Desktop Gateway Service, potentially compromising entire network segments.

Affected Products

  • Microsoft Windows Server 2016
  • Microsoft Windows Server 2019
  • Microsoft Windows Server 2022
  • Microsoft Windows Server 2022 23H2
  • Microsoft Windows Server 2025

Discovery Timeline

  • April 8, 2025 - CVE-2025-27482 published to NVD
  • July 8, 2025 - Last updated in NVD database

Technical Details for CVE-2025-27482

Vulnerability Analysis

The vulnerability resides in the Remote Desktop Gateway Service, a critical component that enables secure remote connections to internal network resources through HTTPS. The flaw involves improper handling of memory locking mechanisms when storing sensitive data during gateway session processing.

When the Remote Desktop Gateway Service processes incoming connections, it stores sensitive session-related data in memory regions that are not properly locked. This improper memory locking allows attackers to manipulate or access the sensitive data through carefully crafted network requests. The exploitation path requires no authentication, making it particularly dangerous for internet-facing Remote Desktop Gateway deployments.

The attack requires high complexity to execute successfully, as precise timing and specific conditions must be met. However, once exploited, the attacker gains the ability to execute arbitrary code with the privileges of the Remote Desktop Gateway Service, typically running under SYSTEM context.

Root Cause

The root cause of CVE-2025-27482 is CWE-591: Sensitive Data Storage in Improperly Locked Memory. The Remote Desktop Gateway Service fails to properly lock memory pages containing sensitive data before performing critical operations. This allows the memory contents to be paged out, moved, or accessed in an uncontrolled manner, creating a race condition that attackers can exploit.

The improper memory locking creates a window of opportunity where sensitive data can be accessed or manipulated by concurrent operations, bypassing the intended security boundaries of the gateway service.

Attack Vector

The attack vector is network-based, requiring no user interaction or prior authentication. An attacker would need to send specially crafted requests to an exposed Remote Desktop Gateway Service. The high attack complexity reflects the need for precise timing and conditions to successfully exploit the memory handling flaw.

Exploitation involves targeting the memory management routines during gateway session establishment. Due to the sensitive nature of this vulnerability, detailed exploitation techniques are not publicly disclosed to prevent malicious use.

Detection Methods for CVE-2025-27482

Indicators of Compromise

  • Unusual crash patterns or service restarts in the Remote Desktop Gateway Service (TSGateway.exe)
  • Unexpected process spawning from the Remote Desktop Gateway Service context
  • Anomalous network traffic patterns to port 443 on Remote Desktop Gateway servers
  • Memory access violations or exceptions logged in Windows Event Logs related to the gateway service

Detection Strategies

  • Monitor Windows Event Logs for TSGateway.exe crashes, unexpected terminations, or memory-related errors (Event ID 1000, 1001 in Application log)
  • Implement network intrusion detection signatures for malformed RD Gateway protocol traffic
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious process behavior originating from the gateway service
  • Utilize Windows Defender Credential Guard to protect against memory-based attacks where applicable

Monitoring Recommendations

  • Enable verbose logging on Remote Desktop Gateway servers to capture detailed connection and error information
  • Configure real-time alerting for service disruptions or unexpected behavior in the Remote Desktop Gateway Service
  • Implement network traffic analysis for anomalous connection patterns targeting port 443 on gateway servers
  • Regularly review Windows Security and Application event logs for signs of exploitation attempts

How to Mitigate CVE-2025-27482

Immediate Actions Required

  • Apply Microsoft's security patches immediately for all affected Windows Server versions
  • Restrict network access to Remote Desktop Gateway services to trusted IP ranges where possible
  • Implement network segmentation to limit lateral movement in case of compromise
  • Enable Windows Defender Exploit Guard and Attack Surface Reduction (ASR) rules on gateway servers

Patch Information

Microsoft has released security updates addressing this vulnerability. Organizations should obtain the appropriate patches from the Microsoft Security Update Guide for CVE-2025-27482. Patches are available for all affected Windows Server versions including Server 2016, 2019, 2022, 2022 23H2, and 2025.

Workarounds

  • If immediate patching is not possible, consider temporarily disabling the Remote Desktop Gateway Service until patches can be applied
  • Implement Web Application Firewall (WAF) rules to filter suspicious requests to the gateway service
  • Use network-level authentication (NLA) as an additional layer of protection, though this does not fully mitigate the vulnerability
  • Deploy virtual patching solutions through intrusion prevention systems (IPS) if available from security vendors
bash
# Verify Remote Desktop Gateway Service status
sc query TSGateway

# Temporarily stop the service if patching is delayed
net stop TSGateway

# Verify installed Windows updates
wmic qfe list brief | findstr /i "security"

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

  • 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
  • Vendor Resources
  • Microsoft Security Update CVE-2025-27482
  • 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
Default Legacy - Prefooter | 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