Race condition in Updater (CVE-2026-87457)
The Windows Chrome updater incorrectly identifies UAC-elevated administrators, causing it to extract payloads into the user-writable %TEMP% directory with insecure permissions. A local attacker could win a race condition to overwrite the extracted executable or manifest, potentially achieving High-IL or SYSTEM privilege escalation.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: The Chrome updater metainstaller on Windows incorrectly identifies UAC-elevated admins, falling back to extracting payloads into the user-writable %TEMP% directory instead of a secure location. A local attacker can exploit this by winning a race condition to overwrite the extracted executable, achieving High-IL privilege escalation. Furthermore, tampering with the offline manifest allows for directory traversal execution via the SYSTEM-level COM service, potentially leading to SYSTEM LPE.
Affected files:
base/files/file_util_win.ccchrome/updater/win/installer/installer.ccchrome/updater/win/manifest_util.ccchrome/updater/win/installer_api.ccchrome/updater/app/server/win/com_classes_util.cc
Estimated timestamp from git blame: 2025-09-17
Summary
There is a potential Local Privilege Escalation (LPE) vulnerability in the Windows Chrome updater. A logic flaw causes elevated metainstallers (running as High Integrity Level via UAC) to extract their payloads into the standard user's %TEMP% directory with insecure, inherited permissions. A standard local user (Medium-IL) can monitor this directory, win a race condition using opportunistic locks (oplocks), and overwrite the installer binaries or offline manifests. This can lead to arbitrary code execution at High-IL or SYSTEM-IL.
Note: The following analysis and steps to reproduce are theoretical and generated by an AI agent; no active exploitation code has been run to verify the end-to-end chain, but the code paths and logic flaws are confirmed in the source.
Root Cause Analysis
- Incorrect Admin Identification: In
base/files/file_util_win.cc,internal::IsUserDefaultAdmin()checks if the process token elevation type is exactlyTokenElevationTypeDefault. However, a standard administrator who elevated via a UAC prompt has an elevation type ofTokenElevationTypeFull. Thus, the function incorrectly returnsfalsefor elevated UAC processes. - Insecure Temp Directory Fallback: Because
IsUserDefaultAdmin()returnsfalse,GetSecureTempDirectory()falls back toGetTempDir(), which resolves to the user's Medium-IL writable%TEMP%directory (e.g.,C:\Users\<user>\AppData\Local\Temp). - Insecure Directory Permissions: When the elevated metainstaller calls
CreateSecureTempDir(), it creates a subdirectory inside%TEMP%using default security attributes. Due to Windows integrity mechanism inheritance, this new directory inherits the DACL from%TEMP%, granting the Medium-IL user Full Control over the directory and its contents.
Exploit Scenarios
Scenario A: High-IL LPE via Binary Overwrite
The metainstaller (chrome/updater/win/installer/installer.cc) extracts the archive and its binary (bin\updater.exe) into the insecure temp directory. It then constructs the path to setup.exe and calls RunProcessAndWait(), which uses ::CreateProcess without signature validation. An attacker can use oplocks to pause the execution immediately after extraction, overwrite bin\updater.exe with a malicious executable, and release the lock. The metainstaller will blindly execute the payload as High-IL.
Scenario B: SYSTEM LPE via Manifest Tampering
During an offline installation, OfflineManifest.gup is also extracted into the insecure temp directory. An attacker can overwrite this manifest to modify the run attribute to a directory traversal string (e.g., ..\..\..\payload.exe).
When the installer parses the manifest (ReadInstallCommandFromManifest in chrome/updater/win/manifest_util.cc), it appends the run string to the offline directory using AppendUTF8(). Since AppendUTF8() does not normalize paths or strip traversals, the malicious path is sent via COM RPC to the SYSTEM-level updater service. The validation function for this path, ValidateInstallerPath (chrome/updater/app/server/win/com_classes_util.cc), only checks string length and emptiness, failing to catch the traversal. The SYSTEM service eventually executes the un-normalized path, granting the attacker SYSTEM LPE.
Potential Steps to Reproduce
- Running as a standard Medium-IL user, set up a directory watcher (e.g.,
ReadDirectoryChangesW) on the user's%TEMP%folder. - Wait for or trigger a system-scope Chrome offline installation that prompts for UAC elevation.
- When the watcher detects a new extraction directory (e.g.,
Google{PID}_{rand}), rapidly place an oplock onbin\updater.exe(for High-IL exploit) orOfflineManifest.gup(for SYSTEM exploit) as they are created. - Overwrite
bin\updater.exewith a custom payload, OR editOfflineManifest.gupto point theruncommand to an attacker-controlled payload path via directory traversal (..\..\payload.exe). - Release the oplock. The installer continues, executing the tampered payload as High-IL or the SYSTEM COM service executes the traversed payload as SYSTEM.
Suggested Fix
- Fix Admin Detection: Update
internal::IsUserDefaultAdmin()inbase/files/file_util_win.ccto accurately reflect high-privilege execution. This can be done by allowingTokenElevationTypeFullwhen checking elevation type, or preferably, by querying the token'sTokenIntegrityLevelto explicitly verify if the process is running at High or SYSTEM integrity. - Harden Path Validation: In
chrome/updater/app/server/win/com_classes_util.cc(ValidateInstallerPath), implement strict path normalization and ensure the resolved path does not contain directory traversal sequences (..). - Validate Manifest Executables: In
chrome/updater/win/manifest_util.cc, sanitize therunattribute fromOfflineManifest.gupto prevent traversal outside the intended offline directory.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the updater's admin check only accepts one token elevation type, so UAC-elevated processes fall back to a user-writable temp directory, and path validation for the manifest does not block directory traversal.
Impact
A local attacker could escalate privileges to High Integrity Level or SYSTEM, but the analysis is theoretical and no end-to-end exploit has been verified.
What the attacker needed
Local access as a standard user; ability to trigger or wait for an offline Chrome…; UAC elevation prompt accepted
The fix
The text suggests fixing admin detection to accept full elevation or check integrity level, and hardening path validation to block directory traversal.
How it was found
- As a standard user, set up a directory watcher on the user's %TEMP% folder.
- Trigger a system-scope Chrome offline installation that prompts for UAC elevation.
- When a new extraction directory appears, place an oplock on the target file (bin\updater.exe or OfflineManifest.gup).
- Overwrite the file with a malicious payload or modify the manifest to point to an attacker-controlled path via directory traversal.
- Release the oplock so the installer continues and executes the tampered payload.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you install software, it sometimes unpacks temporary files into a folder that your normal user account can write to. If the installer runs with higher privileges, an attacker who can also write to that folder might swap the files before they are used, and the installer would then run the attacker's code with those higher privileges.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.