Remote Desktop Client Remote Code Execution Vulnerability (CVE-2026-42985)
A use-after-free flaw exists in the Remote Desktop Client. An attacker who controls a Remote Desktop server could execute code on a victim's machine when the victim connects to that server using the vulnerable client.
Originally disclosed on Microsoft
Description
Use after free in Remote Desktop Client allows an unauthorized attacker to execute code over a network.
FAQ
How could an attacker exploit this vulnerability? In the case of a Remote Desktop connection, an attacker with control of a Remote Desktop Server could trigger a remote code execution (RCE) on the machine when a victim connects to the attacking server with the vulnerable Remote Desktop Client.
Remote Desktop Client
Remote Desktop Client
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 memory management error in the Remote Desktop Client that is triggered during a connection to a server.
Impact
An attacker controlling a Remote Desktop server could execute code on the victim's machine when the victim connects to it.
What the attacker needed
Victim connects to attacker's RDP server
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 take control. Here, the victim only has to connect to a malicious Remote Desktop server, and the attacker may then run their own code on the victim's computer.
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.