Windows Subsystem for Linux GUI Remote Code Execution Vulnerability (CVE-2025-62220)
A heap-based buffer overflow exists in the Windows Subsystem for Linux GUI, specifically in the Remote Desktop client component, which can lead to remote code execution in the Windows host process. An attacker who can interact with the protocol could potentially deliver a crafted attack remotely, though user interaction is required.
Originally disclosed on Microsoft
Description
Heap-based buffer overflow in Windows Subsystem for Linux GUI allows an unauthorized attacker to execute code over a network.
FAQ
Where do I find installation steps for WSL and WSLg? If you have an existing WSL installation without WSLg and want to update to the latest version of WSL which includes WSLg, run the command wsl --update from an elevated command prompt. To learn more visit the GitHub Repo .
FAQ
According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). How could an attacker exploit this vulnerability? A vulnerability in the Remote Desktop client can lead to remote code execution in the Windows host process (msrdc.exe). While the typical scenario involves local communication between a Windows host and a Linux VM, the attack vector is Network (AV:N) because it relies on a network protocol. Although user interaction is required, the risk extends beyond local use: the client supports loading plugins via the /plugin option, and the protocol is open source. This means a crafted attack could potentially be delivered remotely if an attacker can interact with the protocol.
Windows Subsystem for Linux GUI
Windows Subsystem for Linux GUI
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 heap-based buffer overflow in the Remote Desktop client used by WSLg, where crafted protocol input is not properly bounds-checked before being written to memory.
Impact
An attacker could potentially execute code in the Windows host process over the network, but user interaction is required and the text only says a crafted attack could potentially be delivered remotely.
What the attacker needed
User interaction required; attacker can interact with the protocol
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 buffer overflow is when a program writes more data into a fixed-size memory area than it can hold, corrupting nearby memory. Here that happens in the software that draws Linux graphical apps on Windows, and a crafted message over the network could let an attacker run their own code on the machine. The victim still has to do something, such as open or interact with the crafted content.
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.