Skip to content
Memory corruption Advisory Advanced CVE-2025-58718

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.

YingQi Shi Follow

Originally disclosed on Microsoft

High 8.8 View original

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

The original report as published on the Microsoft Security Response Center, by YingQi Shi (@Mas0n) with DBAPPSecurity WeBin 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 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.

More by YingQi Shi

View all

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

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.