Skip to content
RCE Advisory Advanced CVE-2021-38666

Remote Desktop Client Remote Code Execution Vulnerability (CVE-2021-38666)

The Remote Desktop Client contained a vulnerability that allowed a malicious RDP server to execute code on a connecting client machine. An attacker controlling an RDP server could achieve remote code execution when a victim connected to it.

Valentino Ricotta Follow

Originally disclosed on Microsoft

Critical 8.8 View original

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.

Windows RDP

Windows RDP

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Valentino Ricotta with Thalium. 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 memory-safety flaw in how the Remote Desktop Client processes data sent by the server during a connection.

Impact

An attacker could execute arbitrary code on the victim's machine, but only if the victim connects to the attacker's RDP server.

What the attacker needed

Victim connects to attacker-controlled RDP server

The fix

Microsoft addressed the vulnerability; the text states that customer action is required, implying a security update should be applied.

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.

Remote Desktop lets you connect to another computer over the network. Here, the program you use to connect (the client) had a flaw: if you connected to a bad server, that server could run harmful code on your own computer. You would need to be tricked into connecting to the attacker's server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Valentino Ricotta

View all

1 more disclosed report, 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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.