Windows Remote Desktop Services Remote Code Execution Vulnerability (CVE-2024-49108)
A race condition in Windows Remote Desktop Services can lead to a use-after-free, which an attacker could exploit to execute arbitrary code. The attacker must connect to a system with the Remote Desktop Gateway role and win the race condition.
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 connecting 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 race condition in Remote Desktop Services that leads to a use-after-free, allowing arbitrary code execution.
Impact
An attacker who wins the race condition could execute arbitrary code on the affected system.
What the attacker needed
Target runs Remote Desktop Gateway role; attacker can connect to the system; attacker must 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 nearly the same time and the program handles them in the wrong order. Here, that mistake can leave the program using memory it has already freed (a use-after-free), which an attacker can abuse to run their own code. The attacker first needs to connect to a Remote Desktop Gateway server.
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.