Skip to content
Race condition Advisory Advanced CVE-2024-49123

Windows Remote Desktop Services Remote Code Execution Vulnerability (CVE-2024-49123)

A race condition in Windows Remote Desktop Gateway could lead to a use-after-free, allowing an attacker to execute arbitrary code on the system. Exploitation requires winning a race condition, which is difficult.

k0shl Follow

Originally disclosed on Microsoft

Critical 8.1 View original

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.

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.

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 k0shl 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 Gateway that leads to a use-after-free.

Impact

An attacker who wins the race condition could execute arbitrary code on the system.

What the attacker needed

Connect to a Remote Desktop Gateway; 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 race condition is when two actions happen at almost the same time and the software handles them in the wrong order. This can leave a chunk of memory freed but still used, called a use-after-free, which an attacker can abuse to run their own code. The attacker must connect to a Remote Desktop Gateway and win a timing race, which is hard to do reliably.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by k0shl

View all

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

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.