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

Remote Desktop Client Remote Code Execution Vulnerability (CVE-2025-29967)

A heap-based buffer overflow exists in the Remote Desktop Gateway Service. An attacker who controls a Remote Desktop Server could execute code on a victim's machine when the victim connects using the vulnerable Remote Desktop Client.

Nicholas Vadasz Follow

Originally disclosed on Microsoft

Critical 8.8 View original

Description

Heap-based buffer overflow in Remote Desktop Gateway Service 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 RDP client machine when a victim connects to the attacker's server with the vulnerable Remote Desktop Client.

Remote Desktop Gateway Service

Remote Desktop Gateway Service

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Nicholas Vadasz. 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 heap-based buffer overflow in the Remote Desktop Gateway Service when processing data from a remote server.

Impact

An attacker with control of a Remote Desktop Server could trigger remote code execution on the RDP client machine when a victim connects to the attacker's server.

What the attacker needed

Victim uses vulnerable Remote Desktop Client; victim connects to attacker-controlled 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 heap-based buffer overflow is a memory bug where a program writes more data than a memory area can hold, potentially letting an attacker run their own code. Here, if you use the affected Remote Desktop Client to connect to a malicious server, that server can take over your 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 Nicholas Vadasz

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.