Windows Remote Desktop Services Remote Code Execution Vulnerability (CVE-2024-49128)
Windows Remote Desktop Services contains a race condition that can lead to a use-after-free in memory. An unauthenticated attacker could connect to a system with the Remote Desktop Gateway role and, by winning the race, potentially execute arbitrary code over the network.
Description
Sensitive data storage in improperly locked memory in Windows Remote Desktop Services allows an unauthorized attacker to execute code over a network.
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
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 freed while still in use.
Impact
An unauthenticated attacker could potentially execute arbitrary code over the network, but exploitation requires winning a race condition, making it complex.
What the attacker needed
Network access to 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.
This is a flaw in a Windows service that lets people connect to remote desktops. A race condition means two things happen at almost the same time and the program handles them in the wrong order, leaving a piece of memory freed but still used. An attacker who can reach the service might be able to run their own code on the machine, though doing so reliably is hard.
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.