
Proof-of-concept exploit for CVE-2026-20817, a local privilege escalation in Windows Error Reporting (WER) via ALPC, allowing low-privileged users to execute code as SYSTEM.

This repository contains a Proof-of-Concept (PoC) for CVE-2026-20817, a local privilege escalation vulnerability in the Windows Error Reporting (WER) service. The vulnerability allows an authenticated low-privileged user to execute arbitrary code with SYSTEM privileges by sending specially crafted ALPC messages to the WER service.
Original research and PoC by:
The WER service exposes an ALPC port named \WindowsErrorReportingService and provides various methods for interprocess communication. The vulnerability exists in the SvcElevatedLaunch method (0x0D), where the service fails to properly validate the caller's privileges before launching WerFault.exe with user-supplied command line parameters from shared memory.
WerFault.exe with the provided command lineThe spawned WerFault.exe process runs with a SYSTEM token containing:
| Privilege | Description |
|---|---|
| SeDebugPrivilege | Debug any process |
| SeImpersonatePrivilege | Impersonate any user |
| Various standard SYSTEM privileges | Full system access |
Note: The token does NOT include SeTcbPrivilege (Act as part of the operating system).
This PoC is for educational and research purposes only. Use only on systems you own or have explicit permission to test. Unauthorized use may violate laws and regulations.
# Using Visual Studio Developer Command Prompt
cl /EHsc CVE-2026-20817_PoC.cpp