Windows Remote Desktop Services Remote Code Execution Vulnerability (CVE-2025-32710)
A use-after-free flaw exists in Windows Remote Desktop Services. An unauthenticated attacker could connect to a system with the Remote Desktop Gateway role, win a race condition to trigger the use-after-free, and then execute arbitrary code.
ʌ!ɔ⊥ojv Follow with SmallerDragon
Originally disclosed on Microsoft
Description
Use after free in Windows Remote Desktop Services 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 attacker could successfully exploit this vulnerability by attempting to connect to a system with the Remote Desktop Gateway role, triggering the race condition to create a use-after-free scenario, and then leveraging this to execute arbitrary code.
Windows Remote Desktop Services
Windows Remote Desktop Services
Microsoft
Microsoft
Customer Action Required
Yes
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 in Windows Remote Desktop Services that can be triggered by winning a race condition.
Impact
An unauthenticated attacker could execute arbitrary code over the network, but exploitation requires winning a race condition, which makes it complex.
What the attacker needed
Network access to a Remote Desktop Gateway; win a race condition
The fix
Microsoft should fix the use-after-free in Windows Remote Desktop Services; the text does not state that a fix has been released.
How it was found
- Connect to a system with the Remote Desktop Gateway role.
- Trigger the race condition to create a use-after-free scenario.
- Leverage the use-after-free to execute arbitrary code.
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 reach a Remote Desktop Gateway over the network could try to win a timing race and then run their own code on the machine.
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.