PowerShell Direct Elevation of Privilege Vulnerability (CVE-2025-49734)
Windows PowerShell Direct does not properly restrict its communication channel to intended endpoints, so a non-admin local user can hijack a PowerShell Direct session meant for the admin host user. By winning a race condition, the attacker can impersonate the admin host user to the guest VM and potentially manipulate guest-side operations.
Description
Improper restriction of communication channel to intended endpoints in Windows PowerShell allows an authorized attacker to elevate privileges locally.
FAQ
What privileges could be gained by an attacker who successfully exploited the vulnerability? The attacker, initially a non-admin user on the host, could hijack the PowerShell Direct session intended for communication between the admin user on host and a guest VM. This unauthorized access enables the attacker to impersonate the admin host user in communications with the guest, potentially manipulating or controlling guest-side operations.
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
Why am I getting login failure events on my unpatched guest VM? To ensure compatibility with unpatched guests, the new client attempts a login. This will produce an event in the Security Event log with event id 4625. The username will be ?‹PSDirectVMLegacy> and the domain will be 䕖卒佉N . This event should stop when you patch your guest. Note : The ?‹PSDirectVMLegacy> and 䕖卒佉N text is verbatim - this is what the user sees.
FAQ
Where can I find information about additional mitigation steps? There are edge case affecting hotpatched devices that have installed the September 2025 updates . These devices may experience failures with PowerShell Direct (PSDirect) connections when the host and guest virtual machines (VMs) are both not fully updated. If your hotpatched device is experiencing issues with PSDirect connection, we recommend updating both the host and guest VM with these updates. Additional information can be found in the Knowledge Base articles below. KB Article Product 5065306 Windows Server 2022 Hotpatch 5065426 Windows 11, version 24H2 5065432 Windows Server 2022 5065474 Windows Server 2025 Hotpatch 5066359 PowerShell 5066360 PowerShell
Windows PowerShell
Windows PowerShell
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 the PowerShell Direct channel does not verify that the connecting client is the intended admin endpoint, allowing a local non-admin process to race and join the session.
Impact
A local non-admin attacker who wins a race condition could impersonate the admin host user to a guest VM and potentially manipulate or control guest-side operations.
What the attacker needed
Local non-admin account on the host; admin PowerShell Direct session to a guest; win a race condition
The fix
Microsoft addressed the issue with September 2025 updates; both host and guest should be patched, and hotpatched devices may need the listed updates to avoid connection failures.
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.
PowerShell Direct is a feature that lets an administrator on a physical Windows machine run commands inside a virtual machine without using the network. This report says a normal, non-administrator user on the same physical machine can race the administrator and take over that private connection. Once in control, the attacker can pretend to be the administrator when talking to the virtual machine.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.