Skip to content
Access control Advisory Advanced CVE-2026-7990

Insufficient validation of untrusted input in Updater (CVE-2026-7990)

The Chrome Updater on Windows allows a standard user to instantiate a SYSTEM-level COM server and execute the on-os-upgrade AppCommand with an unconfined placeholder, enabling injection of arbitrary command-line switches. This can lead to persistent local privilege escalation to SYSTEM by writing malicious registry keys.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 34 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the security team.

Overview: A potential argument injection vulnerability exists in the Chrome Updater's handling of the on-os-upgrade AppCommand. An unprivileged user can leverage a SYSTEM-level COM server to inject arbitrary command-line switches into a SYSTEM process. This can lead to a persistent local privilege escalation to SYSTEM.

Affected files:

  • chrome/updater/win/app_command_runner.cc
  • chrome/updater/app/server/win/com_classes_legacy.cc
  • chrome/installer/setup/install_worker.cc
  • chrome/installer/setup/setup_main.cc

Estimated timestamp from git blame: 2024-12-19

A potential argument injection vulnerability exists in the Chrome Updater on Windows, allowing a standard unprivileged user to escalate privileges to SYSTEM. This occurs due to a combination of insecure command registration, bypassed COM access checks, and switch precedence issues in the installer.

Root Causes

  1. Unprivileged COM Access: The SYSTEM-scope COM server (GoogleUpdate3WebSystemClass) can be instantiated by standard interactive users. When the createInstalledApp method is called in chrome/updater/app/server/win/com_classes_legacy.cc, it hardcodes is_install = false. This bypasses the IsCOMCallerAllowed check, which otherwise enforces administrator rights.
  2. Insecure Command Registration: In chrome/installer/setup/install_worker.cc, the on-os-upgrade AppCommand is registered with a bare positional %1 placeholder (cmd_line.AppendArg("%1")).
  3. Verbatim Parameter Substitution: When an AppCommand is executed, AppCommandRunner::Run uses base::internal::DoReplaceStringPlaceholders to substitute %1. Because the parameter is not confined (e.g., --switch=%1), an attacker can supply a string starting with -- that will be parsed as a brand new switch by the child process.
  4. Switch Precedence: In chrome/installer/setup/setup_main.cc, HandleNonInstallCmdLineOptions processes potentially dangerous switches like --register-chrome-browser and --remove-chrome-registration before the intended --on-os-upgrade switch.

Potential Attack Steps

Note: These are suggested steps based on static code analysis; our tooling does not yet have the ability to run code to provide a working Proof of Concept.

  1. As a standard unprivileged user, an attacker executes a script to instantiate the GoogleUpdate3WebSystemClass COM object.
  2. The attacker calls createInstalledApp with the Chrome AppID to obtain an IAppWeb interface, bypassing admin checks.
  3. The attacker calls get_command("on-os-upgrade") to retrieve the registered AppCommand object.
  4. The attacker calls execute() on the command, providing a malicious argument for the first substitution parameter, such as --register-chrome-browser=C:\path\to\evil.exe.
  5. The updater substitutes the %1 placeholder and launches setup.exe as SYSTEM with the injected switch.
  6. setup.exe evaluates the injected --register-chrome-browser switch, writing the attacker's executable path to global HKLM registry keys (e.g., Software\Classes\ChromeHTML\shell\open\command).
  7. The attacker achieves persistent SYSTEM-level code execution triggered whenever any user opens a file or URL associated with Chrome.

Suggested Fix

  • Confine the Placeholder: Modify chrome/installer/setup/install_worker.cc so the on-os-upgrade parameter is explicitly confined to a safe switch format, e.g., --previous-version=%1 instead of a bare %1.
  • Enforce COM Access Controls: Ensure that sensitive AppCommands are protected by access controls (e.g., re-introducing a WebAccessible gate or strictly checking caller privileges for all commands in GoogleUpdate3WebSystemClass).
  • Review Switch Evaluation Precedence: Ensure setup_main.cc prioritizes specific action switches (like --on-os-upgrade) in a mutually exclusive or safe manner so that unexpected combinations of switches do not lead to unintended side effects.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


Results 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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

The on-os-upgrade AppCommand uses a bare positional placeholder (%1) that is substituted verbatim, allowing an attacker to inject additional command-line switches that are processed before the intended switch.

Impact

An unprivileged user could achieve persistent local privilege escalation to SYSTEM, leading to full system compromise.

What the attacker needed

Standard unprivileged user on Windows; Chrome Updater installed

The fix

The placeholder should be confined to a safe switch format, COM access controls should be enforced, and switch evaluation precedence should be reviewed.

How it was found

  1. As a standard unprivileged user, instantiate the GoogleUpdate3WebSystemClass COM object.
  2. Call createInstalledApp with the Chrome AppID to obtain an IAppWeb interface, bypassing admin checks.
  3. Call get_command("on-os-upgrade") to retrieve the registered AppCommand object.
  4. Call execute() on the command, providing a malicious argument for the first substitution parameter.
  5. The updater substitutes the %1 placeholder and launches setup.exe as SYSTEM with the injected switch.
  6. setup.exe evaluates the injected switch, writing the attacker's executable path to global HKLM registry keys.

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.

A normal user on a Windows computer can use a special system service (COM server) that runs with the highest privileges (SYSTEM) to run a program with extra options they control. Because the program does not check these options carefully, the user can make it change important system settings, giving them full control of the computer.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.