Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-87704 Overview
CVE-2026-87704 is a use-after-free vulnerability [CWE-416] in Windows Installer that enables local privilege escalation. An authorized attacker with low privileges on a target system can exploit the flaw to gain higher privileges, including SYSTEM-level access. Microsoft disclosed the issue through the Microsoft Security Response Center (MSRC) advisory portal.
The vulnerability requires local access and high attack complexity, which reduces mass exploitation potential. However, it remains relevant for post-compromise scenarios where an attacker already holds a foothold on the host and seeks to escalate privileges.
Critical Impact
Successful exploitation grants an attacker elevated privileges on the local system, enabling full compromise of confidentiality, integrity, and availability.
Affected Products
- Microsoft Windows (Windows Installer component)
- Refer to the Microsoft Security Update Guide for the authoritative list of affected Windows versions and builds
Discovery Timeline
- 2026-10-13 - CVE-2026-87704 published to the National Vulnerability Database
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-87704
Vulnerability Analysis
The flaw resides in the Windows Installer service (msiexec.exe and associated MSI handling components), which processes installation packages with elevated privileges. A use-after-free condition occurs when the component references a memory object after it has been freed, allowing an attacker to influence the contents of that memory region before it is dereferenced.
Because Windows Installer executes operations under the local SYSTEM context during install, repair, and rollback workflows, controlling a dangling pointer during these operations can redirect execution flow or corrupt privileged data structures. The attack is local and requires an attacker to already hold valid credentials on the host.
Root Cause
The root cause is improper object lifetime management in the Windows Installer code path. A reference to a heap object persists after the object has been released, and later use of that reference accesses attacker-influenced memory. This is a classic Use After Free pattern tracked under [CWE-416].
Attack Vector
Exploitation requires local access with low existing privileges. The attacker triggers a specific sequence of installer operations, such as package installation, repair, or rollback, to force the race or state transition that creates the dangling reference. Successful exploitation yields elevated privileges on the host. No user interaction is required beyond the attacker's own actions.
No public proof-of-concept code is available for CVE-2026-87704 at the time of publication. Readers should consult the Microsoft Security Update Guide for authoritative technical context.
Detection Methods for CVE-2026-87704
Indicators of Compromise
- Unexpected child processes spawned by msiexec.exe running as SYSTEM, especially command interpreters such as cmd.exe or powershell.exe
- Creation or modification of MSI packages in user-writable paths followed by installer invocation from a non-administrative user context
- Crash events in msiexec.exe with access violation signatures preceding privilege changes on the host
Detection Strategies
- Hunt for low-privilege user sessions invoking msiexec.exe with suspicious transforms, custom actions, or non-standard package paths
- Correlate Windows Installer service events (Event IDs 1000, 1001, 1033, 11707/11708) with subsequent token elevation or new SYSTEM-context process creation
- Alert on anomalous rollback or repair operations that occur outside maintenance windows or without a corresponding administrative action
Monitoring Recommendations
- Enable detailed process creation auditing (Event ID 4688) with command-line logging on all Windows endpoints
- Collect Sysmon telemetry for process, image load, and file create events scoped to msiexec.exe and %WINDIR%\Installer\
- Forward endpoint telemetry to a centralized analytics platform to detect post-compromise privilege escalation patterns at scale
How to Mitigate CVE-2026-87704
Immediate Actions Required
- Apply the Microsoft security update referenced in the Microsoft Security Update Guide to all affected Windows systems
- Prioritize patching on multi-user systems, jump hosts, and endpoints accessible to lower-trust users where local privilege escalation has the greatest impact
- Review recent authentication and installer activity on unpatched hosts for signs of exploitation attempts
Patch Information
Microsoft has issued a security update addressing the use-after-free condition in Windows Installer. Deploy the vendor patch through Windows Update, Windows Server Update Services (WSUS), Microsoft Endpoint Configuration Manager, or your enterprise patch management tooling. Validate installation by confirming the updated Windows Installer binary version and reviewing patch compliance reports.
Workarounds
- Restrict interactive and remote logon rights to trusted administrative accounts where feasible to limit the local-attacker surface
- Enforce Group Policy settings that disable AlwaysInstallElevated and block user-controlled MSI transforms
- Apply application control policies such as Windows Defender Application Control (WDAC) or AppLocker to restrict execution of untrusted MSI packages
# Verify AlwaysInstallElevated is disabled in both HKLM and HKCU
reg query "HKLM\Software\Policies\Microsoft\Windows\Installer" /v AlwaysInstallElevated
reg query "HKCU\Software\Policies\Microsoft\Windows\Installer" /v AlwaysInstallElevated
# Confirm the Windows Installer patch is installed
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 20
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

