KB5022899: Windows Server 2012 R2 Security Update (February 2023)
A crafted authentication packet to a Windows Network Policy Server can give an attacker code execution in the NPS service context, with no credentials.
An attacker who can reach the RADIUS endpoint of a Windows Server running NPS with PEAP enabled can send a crafted authentication request that triggers the input-validation flaw and runs code in the NPS service. The attacker walks away with control over the server that authenticates every wireless client, every wired-network connection, and every PEAP-based VPN session in the environment.
PEAP is the authentication protocol used by WPA2-Enterprise Wi-Fi, 802.1X wired authentication, and many enterprise VPNs. The Windows Network Policy Server (NPS) role terminates PEAP for these workflows. A flaw in how NPS validates user-supplied PEAP input lets an unauthenticated remote attacker send a crafted PEAP packet and execute arbitrary code in the NPS service context.
Probably yes if any of these apply:
Affected OS versions
A red-team operator joins the corporate guest Wi-Fi from the office lobby. The guest network reaches the internal RADIUS server because of an old firewall exception. The operator sends a crafted PEAP packet, the NPS service runs the attacker's code, and they now own the authentication infrastructure for the entire building — including the credentials of every 802.1X-authenticated workstation that connects.
Manual download
For air-gapped servers or out-of-band deployment. Microsoft Update Catalog returns every OS-version variant of this update.
↗ Microsoft Update CatalogKB5022899Manual remediation steps
Prerequisites
Estimated time
20–40 minutes per server (download + install + reboot)
Reboot required
Yes — install the cumulative update and reboot the server before the fix is active.
Steps
1. Confirm the server is missing the patch
Get-HotFix -Id KB5022899 -ErrorAction SilentlyContinue
2. Install the update — pick one channel
Windows Update / WSUS (preferred):
UsoClient ScanInstallWait
# (or use your standard WSUS / SCCM / Intune deployment for KB5022899)
Manual download (offline / air-gapped):
3. Reboot
Restart-Computer -Force
Verification
Get-HotFix -Id KB5022899
[System.Environment]::OSVersion.Version
If Get-HotFix returns nothing for KB5022899, the install did not take — re-run from a different channel.
Rollback
wusa.exe /uninstall /kb:5022899 /quiet /norestart
# Reboot after uninstall
Removing a cumulative update also removes every fix it delivered — prefer rolling forward.
Notes
No tested PowerShell script for this entry yet. We’re prioritising automation based on user demand.