Microsoft has released security patches resolving CVE-2026-96951 (CVSS score 8.8, High), a remote command injection vulnerability in the Windows Remote Management (WinRM) protocol implementation across supported Windows Server and client platforms. The flaw allows authenticated domain users with basic remote execution rights to escape PowerShell Constrained Language Mode (CLM) and achieve full administrative code execution.
Executive Threat Summary & Exploit Landscape
Windows Remote Management (WinRM) uses the WS-Management standard to enable centralized administration of Windows servers and endpoints over ports 5985 (HTTP) and 5986 (HTTPS). Large enterprises rely heavily on WinRM for automated orchestration, Ansible playbooks, and PowerShell Remoting.
Under CVE-2026-96951, an adversary possessing compromised standard domain credentials (or access through an initial access broker) can craft a specialized SOAP management request that bypasses parameter tokenization. Because the WSMAN service executes command dispatchers under the NT AUTHORITYSYSTEM security context, exploiting this flaw transforms limited standard user credentials into total domain controller compromise.
Vulnerability Mechanics & Technical Root Cause (CWE-77)
The defect originates within wsmsvc.dll (the Windows Remote Management service DLL). When WinRM receives a command execution request (wsmid:Command), it parses arguments passed inside the <rsp:CommandLine> SOAP tag. If arguments contain specifically crafted null bytes combined with quotation escapes, the argument array is flattened incorrectly before being passed to CreateProcessAsUserW:
<!-- Malicious WSMAN SOAP Request Snippet -->
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope">
<s:Body>
<wsmid:Command xmlns:wsmid="http://schemas.microsoft.com/wbem/wsman/1/windows/shell">
<wsmid:CommandLine>powershell.exe -EncodedCommand [Payload]&whoami /all</wsmid:CommandLine>
</wsmid:Command>
</s:Body>
</s:Envelope>
Because the argument sanitizer fails to detect the nested command terminator inside the XML CDATA container, the secondary command executes directly in a child shell outside the restricted sandbox allocated for the caller, resulting in arbitrary system privilege escalation.
Vulnerable Software Versions & Patch Status Matrix
| Operating System | Vulnerable Builds | Patched Cumulative Update | Severity |
|---|---|---|---|
| Windows Server 2025 | Builds prior to 26100.2033 | KB5048220 (October 2026) | Critical |
| Windows Server 2022 | Builds prior to 20348.2760 | KB5048235 (October 2026) | Critical |
| Windows Server 2019 | Builds prior to 17763.6414 | KB5048240 (October 2026) | Critical |
| Windows 11 (23H2 / 24H2) | Builds prior to October 2026 patch | KB5048220 | Critical |
Step-by-Step Remediation Playbook & Patch Commands
Systems engineers must deploy the October 2026 Windows Cumulative Update immediately:
- Deploy Patch via Windows Update / WSUS:
# Query installed update status via PowerShell Get-HotFix | Where-Object { $_.HotFixID -match "KB5048220|KB5048235" } # Install updates via PSWindowsUpdate module Install-WindowsUpdate -KBArticleID KB5048220 -AcceptAll -AutoReboot - Restrict WinRM Network Listener Access: If immediate rebooting of production servers is restricted, constrain WinRM listeners strictly to internal management subnets via Windows Defender Firewall:
# Restrict WinRM port 5985 to dedicated management bastion jump hosts Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP" -RemoteAddress 10.10.50.0/24 -Enabled True Set-NetFirewallRule -Name "WINRM-HTTPS-In-TCP" -RemoteAddress 10.10.50.0/24 -Enabled True - Enforce Constrained WinRM Endpoint ACLs: Audit local WinRM session configurations to restrict general user access:
Set-PSSessionConfiguration -Name Microsoft.PowerShell -ShowSecurityDescriptorUI
Threat Detection, Log Auditing & Forensic Queries
Monitor Microsoft-Windows-WinRM operational event logs for unexpected command creation events:
# Query Event ID 91 (Command Created) and Event ID 168 (Command Executed)
Get-WinEvent -FilterHashtable @{
LogName = 'Microsoft-Windows-WinRM/Operational'
Id = 91, 168
} -MaxEvents 100 | Format-List TimeCreated, Message
In Microsoft Defender for Endpoint or EDR telemetry, alert on wsmprovhost.exe spawning unexpected shells (cmd.exe, powershell.exe) with administrative privileges.



