Skip to content
Memory corruption Advisory Advanced CVE-2025-24035

Windows Remote Desktop Services Remote Code Execution Vulnerability (CVE-2025-24035)

A memory-safety flaw in Windows Remote Desktop Services lets an unauthenticated attacker run code over the network. Exploiting it requires winning a race condition that produces a use-after-free, which is then leveraged to execute arbitrary code.

ʌ!ɔ⊥ojv Follow

Originally disclosed on Microsoft

Critical 8.1 View original

Description

Sensitive data storage in improperly locked memory 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

The original report as published on the Microsoft Security Response Center, by ʌ!ɔ⊥ojv with Kunlun Lab. 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 race condition in Remote Desktop Services leads to a use-after-free, where memory is released while still in use and then reused by the attacker.

Impact

An unauthenticated attacker could execute arbitrary code over the network, though exploitation is difficult because a race condition must be won.

What the attacker needed

Network access to a Remote Desktop Gateway; winning a race condition

The fix

Microsoft addressed the flaw; the advisory states that customer action is required, meaning the update should be applied.

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.

Remote Desktop Services is the Windows feature that lets people connect to a computer's screen over the network. This bug is a memory handling mistake: if an attacker connects at just the right moment, the program can use memory it has already freed, and that can let them run their own code on the machine. The attacker needs no login, but the timing is hard to get right.

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 ʌ!ɔ⊥ojv

View all

8 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.