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

Remote Desktop Protocol Remote Code Execution Vulnerability (CVE-2025-58737)

A use-after-free flaw exists in Windows Remote Desktop that lets an unauthorised attacker run code on the machine. Exploiting it requires the attacker to send a malicious Office file, convince the user to open it, and win a race condition.

zhiniang peng Follow

Originally disclosed on Microsoft

High 7.0 View original

Description

Use after free in Windows Remote Desktop allows an unauthorized attacker to execute code locally.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? An attacker must send a user a malicious Office file and convince them to open it.

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

According to the CVSS metric, the attack vector is local (AV:L). Why does the CVE title indicate that this is a remote code execution? The word Remote in the title refers to the location of the attacker. This type of exploit is sometimes referred to as Arbitrary Code Execution (ACE). The attack itself is carried out locally. This means an attacker or victim needs to execute code from the local machine to exploit the vulnerability.

Windows Remote Desktop

Windows Remote Desktop

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Zhiniang Peng with HUST & R4nger with CyberKunLun. 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 Windows Remote Desktop, where memory is accessed after being released, and the race condition makes the timing of that access exploitable.

Impact

An attacker could execute code locally on the victim's machine, but only if the user opens the malicious file and the attacker wins a race condition.

What the attacker needed

Victim opens a malicious Office file; attacker wins 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 use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed, so an attacker can plant their own data there. Here the affected program is Windows Remote Desktop, and the attacker has to trick someone into opening a booby-trapped Office document. Because the attacker must also win a timing race, the exploit is unreliable and needs several attempts.

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 zhiniang peng

View all

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