Remote Desktop Client Remote Code Execution Vulnerability (CVE-2025-58718)
A use-after-free flaw in the Remote Desktop Client could let a malicious RDP server run code on a victim's machine. An attacker would need to persuade the user to connect to that server, after which code could run with the user's privileges.
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? An attacker would have to convince a targeted user to connect to a malicious RDP server. Upon connecting, the malicious server could execute code on the victim's system in the context of the targeted user.
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 in the Remote Desktop Client's handling of data from an RDP server, where memory is accessed after being released.
Impact
A malicious RDP server could execute code on the victim's system with the victim's privileges, but only if the user is convinced to connect to it.
What the attacker needed
Victim connects to a malicious 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.
The Remote Desktop Client is the program you use to connect to another computer's screen over the network. A use-after-free bug means the program keeps using a piece of memory after it has been freed, which can let an attacker take control. Here, a fake server could send something that makes the client run the attacker's code on your own 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.