Skip to content
Memory corruption Advisory Advanced CVE-2026-100218

Remote Desktop Gateway Service Remote Code Execution Vulnerability (CVE-2026-100218)

A use-after-free flaw exists in the Remote Desktop Gateway Service, which an unauthenticated attacker could trigger by sending a specially crafted packet over the network. Successful exploitation could allow remote code execution on the target system, though a race condition must be won.

yhw Follow

Originally disclosed on Microsoft

High 8.1 View original

Description

Use after free in Remote Desktop Gateway Service allows an unauthorized attacker to execute code over a network.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to win a race condition.

FAQ

How could an attacker exploit this vulnerability? An unauthenticated attacker could exploit this vulnerability by sending a specially crafted packet to an affected service over the network. Successful exploitation could allow the attacker to execute code on the target system. No authentication or user interaction is required.

Remote Desktop Gateway Service

Remote Desktop Gateway Service

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by yhw. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a use-after-free memory management error in the Remote Desktop Gateway Service that can be triggered by a crafted network packet.

Impact

An unauthenticated attacker could execute code on the target system, but exploitation requires winning a race condition, making it complex.

What the attacker needed

Network access to the service; no authentication required; win a race condition

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed, which can let an attacker control what happens next. Here, an attacker who can send network packets to the Remote Desktop Gateway Service could potentially run their own code on the machine. The catch is that the attacker must win a race, meaning they have to hit a very narrow timing window.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by yhw

View all

142 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.