Low-privileged users can delete arbitrary folders via Windows Installer, achieving SYSTEM code execution
A logic flaw in the MSI service’s COM interface allows any non-admin user to schedule and delete arbitrary folders as SYSTEM, enabling privilege escalation.
Security & privacy Exodus Intelligence 6 Jul 2026 Disclosure Prototype evidence
Published as “Microsoft Windows Installer Folder Delete Privilege Escalation”
Why it matters
The flaw enables local privilege escalation on unpatched Windows systems, allowing attackers to gain SYSTEM rights.
Summary
The researchers reverse-engineered the Windows Installer COM object and identified three methods that can be chained to make the MSI service delete an arbitrary folder as SYSTEM. By writing a path to the TempPackages registry key via SetEEUIDirectoryAndFilter, the CleanupTempPackages routine blindly removes the folder, even if it was not created by the installer. They demonstrated a full privilege-escalation chain that plants malicious rollback scripts in a recreated C:\Config.Msi folder, resulting in SYSTEM code execution. Microsoft patched the issue in April 2025 by adding a feature-flag check that prevents the vulnerable scheduling call.
What they found 2
- Low-privileged user can cause MSI service to delete an arbitrary folder via TempPackages
“The vulnerability allows a low-privileged user to cause the MSI service to delete an arbitrary folder that the user has access to, by scheduling its path in the TempPackages registry key.”
- CleanupTempPackages deletes the registered folders as SYSTEM without validation
“CleanupTempPackages() enumeratesTempPackages and deletes the referenced folders as SYSTEM.”
Caveats 2
- The only access check is that the caller hasDELETE permission on the folder, which is trivially satisfied if the user created the folder themselves with permissive ACLs.
- C:\Config.Msi is created with permissive ACLs, any user can create folders at the root of C:\.
What’s new here 4
- Identified a logic flaw in the MSI service COM interface that permits arbitrary folder deletion.
- Demonstrated a complete privilege-escalation chain using the C:\Config.Msi folder and rollback scripts.
- Provided detailed reverse-engineered code paths and registry abuse techniques.
- Microsoft issued a patch (CVE-2025-27727) adding a feature flag to block the vulnerable code path.