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
    • 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-2024-49116

CVE-2024-49116: Windows Server 2016 RCE Vulnerability

CVE-2024-49116 is a remote code execution vulnerability in Windows Remote Desktop Services on Windows Server 2016 that allows attackers to execute arbitrary code. This article covers technical details, affected systems, and mitigation.

Updated: January 22, 2026

CVE-2024-49116 Overview

CVE-2024-49116 is a critical Remote Code Execution vulnerability affecting Windows Remote Desktop Services (RDS). This vulnerability allows unauthenticated remote attackers to execute arbitrary code on affected Windows Server systems by exploiting memory corruption issues within the Remote Desktop Gateway service. The vulnerability stems from a combination of Use After Free (CWE-416) and Race Condition (CWE-362) weaknesses that can be triggered over the network without user interaction.

Critical Impact

Successful exploitation could allow attackers to gain complete control over affected Windows Server systems running Remote Desktop Services, potentially compromising entire enterprise infrastructures that rely on RDS for remote access.

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

  • December 12, 2024 - CVE-2024-49116 published to NVD
  • January 14, 2025 - Last updated in NVD database

Technical Details for CVE-2024-49116

Vulnerability Analysis

This vulnerability exists within the Windows Remote Desktop Services component, specifically affecting the Remote Desktop Gateway functionality. The underlying issue involves two distinct weakness classes working in combination: a Use After Free condition (CWE-416) and a Race Condition (CWE-362).

The Use After Free component occurs when RDS improperly handles memory during session management, allowing a memory region to be referenced after it has been freed. When combined with the Race Condition vulnerability, attackers can manipulate the timing of operations to create an exploitable state where freed memory is accessed with attacker-controlled content.

The network-based attack vector means that systems exposing RDS to the internet are at particularly high risk. While the attack complexity is considered high due to the race condition timing requirements, successful exploitation requires no authentication or user interaction, making this a serious threat to exposed servers.

Root Cause

The root cause of CVE-2024-49116 involves improper memory lifecycle management within the Remote Desktop Services component. Specifically, the vulnerability arises from:

  1. Use After Free (CWE-416): Memory associated with RDS session handling is freed but pointers to this memory remain accessible. Subsequent operations may dereference these dangling pointers, leading to memory corruption.

  2. Race Condition (CWE-362): A timing-dependent race condition exists in concurrent operations within RDS, allowing attackers to manipulate the state of shared resources between the time of check and time of use.

The combination of these two weaknesses creates an exploitable condition where attackers can potentially control the contents of freed memory at the moment it is reused.

Attack Vector

The attack vector for CVE-2024-49116 is network-based, targeting systems running Remote Desktop Services. An attacker would need network access to the RD Gateway service (typically TCP port 443 or 3391 for UDP transport).

The exploitation scenario involves sending specially crafted requests to the Remote Desktop Gateway service that trigger the race condition while simultaneously exploiting the use-after-free vulnerability. The high attack complexity stems from the need to win the race condition, which may require multiple attempts.

Since no authentication is required and no user interaction is needed, automated exploitation could potentially be developed, though the race condition timing adds complexity to reliable exploitation.

Detection Methods for CVE-2024-49116

Indicators of Compromise

  • Unexpected crashes or restarts of the Remote Desktop Gateway service (TSGateway.exe)
  • Anomalous network traffic patterns targeting RD Gateway ports (TCP 443, UDP 3391)
  • Unusual memory access patterns or crash dumps in Windows Event logs related to RDS components
  • Process creation events spawning from RDS-related services with unexpected parent-child relationships

Detection Strategies

  • Monitor Windows Event Logs for Event IDs related to Remote Desktop Gateway failures and service crashes
  • Implement network intrusion detection rules to identify anomalous RDP/RDS traffic patterns
  • Deploy endpoint detection and response (EDR) solutions capable of detecting memory corruption exploitation attempts
  • Enable Windows Defender Exploit Guard with Attack Surface Reduction (ASR) rules for RDS components

Monitoring Recommendations

  • Configure alerting on Remote Desktop Gateway service health and unexpected restarts
  • Implement network flow analysis for connections to RD Gateway endpoints
  • Monitor for unusual process behavior from TSGateway.exe and related RDS processes
  • Review security logs for failed authentication attempts combined with service instability

How to Mitigate CVE-2024-49116

Immediate Actions Required

  • Apply the December 2024 Microsoft security updates immediately to all affected Windows Server systems
  • If patching is not immediately possible, consider temporarily disabling Remote Desktop Gateway services on internet-facing systems
  • Restrict network access to RD Gateway services using firewalls and Network Security Groups
  • Enable network-level authentication (NLA) as an additional defense layer where possible

Patch Information

Microsoft has released security updates to address CVE-2024-49116 as part of the December 2024 Patch Tuesday release cycle. Administrators should consult the Microsoft Security Update Guide for specific patch versions and installation guidance for each affected Windows Server edition.

Patches should be applied through standard Windows Update, Windows Server Update Services (WSUS), or Microsoft Update Catalog based on organizational patch management procedures.

Workarounds

  • Disable Remote Desktop Gateway services if not required for business operations
  • Implement network segmentation to limit exposure of RD Gateway services to trusted networks only
  • Use Azure Application Gateway or other reverse proxy solutions with Web Application Firewall capabilities in front of RD Gateway
  • Consider migrating to Azure Virtual Desktop or other cloud-based remote access solutions that may provide additional security controls
bash
# Disable Remote Desktop Gateway service temporarily
Stop-Service -Name TSGateway -Force
Set-Service -Name TSGateway -StartupType Disabled

# Re-enable after patching
Set-Service -Name TSGateway -StartupType Automatic
Start-Service -Name TSGateway

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 Probability4.27%

  • 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

  • CWE-362
  • Vendor Resources
  • Microsoft Security Update CVE-2024-49116
  • Related CVEs
  • CVE-2026-33826: Windows Active Directory RCE Vulnerability

  • CVE-2026-32183: Windows Snipping Tool RCE Vulnerability

  • CVE-2026-32149: Windows Hyper-V RCE Vulnerability

  • CVE-2026-31995: Openclaw Command Injection 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