Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-58540

CVE-2026-58540: Windows 10 1607 Privilege Escalation Flaw

CVE-2026-58540 is a privilege escalation vulnerability in Windows 10 1607 Installer caused by improper authorization. Attackers can exploit this to gain elevated privileges locally. This article covers technical details.

Published:

CVE-2026-58540 Overview

CVE-2026-58540 is an improper authorization vulnerability in the Windows Installer service that allows an authenticated local attacker to elevate privileges to SYSTEM. The flaw is tracked under CWE-285: Improper Authorization and affects a broad range of Windows client and server releases. Microsoft published the advisory on July 14, 2026, and the issue impacts Windows 10, Windows 11, and Windows Server versions from 2012 through 2025. Successful exploitation grants an attacker full control over confidentiality, integrity, and availability on the targeted host. Refer to the Microsoft Security Update CVE-2026-58540 advisory for vendor guidance.

Critical Impact

An authenticated local user can abuse Windows Installer to gain SYSTEM privileges, enabling persistence, credential theft, and lateral movement on affected Windows hosts.

Affected Products

  • Microsoft Windows 10 (versions 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (versions 24H2, 25H2, 26H1)
  • Microsoft Windows Server 2012, 2012 R2, 2016, 2019, 2022, and 2025

Discovery Timeline

  • 2026-07-14 - CVE-2026-58540 published to NVD
  • 2026-07-16 - Last updated in NVD database

Technical Details for CVE-2026-58540

Vulnerability Analysis

The vulnerability resides in the Windows Installer service (msiexec.exe and associated MSI processing components), which runs with SYSTEM privileges to manage software installation and repair. Improper authorization checks allow an authenticated low-privileged user to invoke privileged Installer operations that should be restricted to administrators. Because installer operations execute in a high-privilege context, an attacker who influences these operations can perform actions such as writing to protected paths, loading arbitrary DLLs, or manipulating registry keys under SYSTEM. The result is a local elevation of privilege from a standard user account to SYSTEM. This class of issue is commonly abused during post-exploitation to establish persistence and disable defensive tooling.

Root Cause

The defect is classified as CWE-285: Improper Authorization. Windows Installer fails to correctly verify that the calling user is authorized to perform certain privileged actions. The check either occurs on attacker-controlled state or is omitted for specific code paths reachable from a non-administrative session.

Attack Vector

Exploitation requires local access and valid credentials on the target host. The attacker does not require user interaction beyond their own session. Typical abuse patterns for Windows Installer elevation flaws involve triggering repair or rollback operations, redirecting file paths through junctions or symbolic links, or coercing the Installer service to operate on attacker-planted MSI content. No public proof-of-concept exploit was available at the time of publication.

See the Microsoft Security Update CVE-2026-58540 advisory for authoritative technical details.

Detection Methods for CVE-2026-58540

Indicators of Compromise

  • Unexpected child processes of msiexec.exe running as NT AUTHORITY\SYSTEM following invocation by a standard user account.
  • Creation or modification of files in C:\Config.Msi, C:\Windows\Installer, or %TEMP% by non-administrative users immediately before an Installer-driven SYSTEM action.
  • New services, scheduled tasks, or local administrator accounts created shortly after MSI repair or rollback events.
  • Suspicious symbolic link or junction creation targeting Installer working directories.

Detection Strategies

  • Correlate Windows Event ID 1042 and 11707 (MsiInstaller source) with the invoking user SID to spot standard users triggering privileged installs.
  • Monitor Sysmon Event ID 1 for msiexec.exe spawning shells (cmd.exe, powershell.exe) or LOLBins under the SYSTEM context.
  • Alert on Sysmon Event ID 11 for file writes into C:\Config.Msi by non-admin processes, a common pattern for Installer hijack primitives.

Monitoring Recommendations

  • Baseline normal MSI activity per host and flag deviations, especially repair operations initiated outside change windows.
  • Forward Installer, Sysmon, and process-creation telemetry to a centralized analytics platform for retrospective hunting once patches are deployed.
  • Track privilege elevation chains that end with token impersonation of SYSTEM originating from standard user sessions.

How to Mitigate CVE-2026-58540

Immediate Actions Required

  • Apply the July 2026 Microsoft security updates referenced in the MSRC advisory for CVE-2026-58540 to all affected Windows client and server systems.
  • Prioritize patching of multi-user hosts, jump servers, and Remote Desktop Session Hosts where multiple non-administrative users have interactive access.
  • Audit local accounts and remove unnecessary interactive logon rights to reduce the population of users able to trigger the flaw.

Patch Information

Microsoft addresses CVE-2026-58540 through cumulative security updates delivered via Windows Update, WSUS, and the Microsoft Update Catalog. Consult the Microsoft Security Update CVE-2026-58540 page for the specific KB articles that apply to each Windows build. Confirm patch deployment by validating the updated build number after reboot.

Workarounds

  • Restrict the AlwaysInstallElevated policy: ensure both HKLM and HKCU values are set to 0 so MSI packages do not install with elevated privileges by default.
  • Limit standard user ability to execute arbitrary MSI files through AppLocker or Windows Defender Application Control policies.
  • Remove unused local user accounts and enforce least privilege on shared systems until patches are applied.
bash
# Verify AlwaysInstallElevated is disabled (should return 0 or not exist)
reg query HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated
reg query HKCU\SOFTWARE\Policies\Microsoft\Windows\Installer /v AlwaysInstallElevated

# Confirm installed KB after patching (replace KBxxxxxxx with the advisory-listed KB)
wmic qfe list brief | findstr KBxxxxxxx

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.