Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-100218 Overview
CVE-2026-100218 is a use-after-free vulnerability [CWE-416] in the Microsoft Remote Desktop Gateway (RD Gateway) Service. The flaw allows an unauthenticated remote attacker to execute arbitrary code over a network by triggering memory reuse after an object has been freed. Successful exploitation grants code execution in the context of the RD Gateway service, exposing enterprise remote access infrastructure to compromise.
Microsoft published the advisory on October 13, 2026. The CVSS 3.1 base score is 8.1 with vector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, reflecting network reachability and high impact on confidentiality, integrity, and availability. The EPSS score is 0.723% as of October 15, 2026.
Critical Impact
Unauthenticated attackers can achieve remote code execution on internet-exposed Remote Desktop Gateway servers, undermining a core enterprise remote access control plane.
Affected Products
- Microsoft Remote Desktop Gateway Service (see Microsoft Security Response Center advisory for exact build-level details)
- Windows Server deployments running the RD Gateway role
- Environments using RD Gateway for external RDP tunneling over HTTPS
Discovery Timeline
- 2026-10-13 - CVE-2026-100218 published to the National Vulnerability Database
- 2026-10-13 - Microsoft Security Response Center publishes advisory for CVE-2026-100218
- 2026-10-13 - Record last modified in NVD database
Technical Details for CVE-2026-100218
Vulnerability Analysis
The vulnerability is a use-after-free condition in the Remote Desktop Gateway Service. RD Gateway tunnels RDP traffic over HTTPS on TCP/443, acting as the perimeter entry point for external Remote Desktop sessions. The service manages connection objects, session state, and tunnel contexts in memory while handling concurrent client requests.
A use-after-free occurs when the service continues to reference a heap object after it has been freed. An attacker who can trigger the premature free, then force the service to dereference the stale pointer, can control the contents of the reused memory region. This allows redirection of execution flow, typically through corrupted virtual function tables or callback pointers.
Exploitation requires no authentication and no user interaction. The high attack complexity reflects the need to win a race or orchestrate specific allocation patterns against RD Gateway's memory manager. Successful exploitation yields code execution in the RD Gateway service account context on the gateway host.
Root Cause
The root cause is improper lifetime management of a heap-allocated object within the RD Gateway service [CWE-416]. The object is freed while another code path retains a reference to it, and the dangling pointer is subsequently used without validation. Microsoft has not published the specific function or object class involved.
Attack Vector
The attack vector is network-based. An attacker sends crafted RDP-over-HTTPS traffic to a reachable RD Gateway endpoint on TCP/443. No credentials and no user action are required. See the Microsoft Vulnerability Advisory for CVE-2026-100218 for vendor-provided technical details.
No verified proof-of-concept code is available. Refer to the Microsoft
Security Response Center advisory for authoritative technical details.
Detection Methods for CVE-2026-100218
Indicators of Compromise
- Unexpected crashes, restarts, or access violations in the TSGateway service or associated RD Gateway processes
- New or unusual child processes spawned by the RD Gateway service account
- Outbound connections initiated from the RD Gateway host to unfamiliar external IP addresses following inbound TCP/443 traffic
- Anomalous HTTPS request patterns to /remoteDesktopGateway/ endpoints originating from a single source
Detection Strategies
- Monitor Windows Error Reporting and application crash logs for faults in RD Gateway binaries, which can indicate failed exploitation attempts
- Correlate TCP/443 inbound traffic volume spikes with RD Gateway service instability
- Deploy behavioral endpoint detection on RD Gateway servers to flag process injection or unexpected shell execution originating from gateway service processes
- Baseline normal RD Gateway connection patterns and alert on deviations in session duration and request structure
Monitoring Recommendations
- Forward RD Gateway operational logs (Microsoft-Windows-TerminalServices-Gateway) to a centralized SIEM for correlation
- Enable Sysmon on gateway hosts to capture process creation, image loads, and network connections from the RD Gateway service
- Track authentication failures and connection resets on RD Gateway listeners for reconnaissance signals
- Alert on any code execution from the RD Gateway service account outside of expected binaries
How to Mitigate CVE-2026-100218
Immediate Actions Required
- Apply the Microsoft security update referenced in the MSRC advisory for CVE-2026-100218 to all RD Gateway servers
- Inventory all RD Gateway deployments, including internet-exposed instances, and prioritize patching based on exposure
- Restrict inbound TCP/443 to RD Gateway hosts to known client IP ranges where feasible
- Review RD Gateway logs for anomalous activity in the period preceding patch deployment
Patch Information
Microsoft released a security update addressing CVE-2026-100218 on October 13, 2026. Consult the Microsoft Vulnerability Advisory for CVE-2026-100218 for the specific KB article, affected Windows Server builds, and update packages applicable to your environment.
Workarounds
- Place RD Gateway behind a VPN or Zero Trust Network Access broker to eliminate direct internet exposure until patching completes
- Enforce source IP allow-lists at perimeter firewalls for RD Gateway endpoints
- Require pre-authentication at an upstream reverse proxy or identity-aware gateway where supported
- Temporarily disable the RD Gateway role on hosts that are not actively required for remote access
# Example: restrict inbound TCP/443 to RD Gateway using Windows Firewall
New-NetFirewallRule -DisplayName "RDGW-Restrict-443" `
-Direction Inbound -Protocol TCP -LocalPort 443 `
-RemoteAddress 203.0.113.0/24,198.51.100.0/24 `
-Action Allow -Profile Any
# Block all other inbound 443 traffic to this host
New-NetFirewallRule -DisplayName "RDGW-Block-443-Default" `
-Direction Inbound -Protocol TCP -LocalPort 443 `
-Action Block -Profile Any
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

