Skip to content
RCE Advisory Advanced CVE-2026-17863

Inappropriate implementation in Browser (CVE-2026-17863)

Chrome's session restart logic fails to re-insert the '--' switch terminator when reconstructing the child command line, allowing slash-prefixed arguments to be re-parsed as switches. An attacker with local medium-integrity access could potentially exploit this to run arbitrary code under the privileged App-Bound Encryption isolation token.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 55 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: During a browser relaunch via RestartMode::kRestartThisSession, Chrome reconstructs the child command line but fails to re-insert the '--' switch terminator. Consequently, any slash-prefixed loose arguments can be re-parsed as switches in the child process. This presents a potential mechanism to bypass command-line switch verification, such as that used by the App-Bound Encryption isolation service.

Affected files:

  • chrome/browser/lifetime/browser_shutdown.cc

Estimated timestamp from git blame: 2019-08-23

Description

A potential command-line injection vulnerability has been identified via static analysis in Chrome's session restart logic on Windows.

When Chrome performs a session relaunch (such as during a downgrade snapshot restore or other scenarios triggering RestartMode::kRestartThisSession), the browser-side relaunch logic reconstructs the command line for the new process by copying arguments from the parent process. However, it does not preserve or re-insert the -- command-line switch terminator.

Root Cause Analysis

In chrome/browser/lifetime/browser_shutdown.cc:

C++
case RestartMode::kRestartThisSession:
  // Copy URLs and other arguments to the new command line.
  for (const auto& arg : old_cl.GetArgs()) {
    new_cl.AppendArgNative(arg);
  }
  break;

When calling old_cl.GetArgs(), base::CommandLine strips out the first instance of the switch terminator (--):

C++
// base/command_line.cc
CommandLine::StringVector CommandLine::GetArgs() const {
  StringVector args(argv_.begin() + begin_args_, argv_.end());
  auto switch_terminator = std::ranges::find(args, kSwitchTerminator);
  if (switch_terminator != args.end()) {
    args.erase(switch_terminator); // "--" is removed
  }
  return args;
}

Since browser_shutdown.cc never re-inserts L"--" prior to appending these arguments, they are written directly to new_cl.argv_.

During process creation via base::LaunchProcess, the command line is serialized using GetArgumentsString(). On Windows, command-line arguments starting with a slash (/) are parsed as switches unless they are preceded by a -- terminator. Because the terminator was stripped and not re-inserted, arguments like /gpu-launcher=C:\a\e.exe or /no-sandbox are serialized and then re-parsed by the child process as active command-line switches.

Potential Attack Scenario / Exploit Path

An attacker with local medium-integrity access could potentially exploit this on enterprise-managed Windows hosts to run arbitrary code under the privileged App-Bound Encryption (ABE) isolation token:

  1. Setup State: The attacker writes a fake higher version string (e.g., 999.0.0.0) to %LOCALAPPDATA%\Google\Chrome\User Data\Last Version and sets up a mock snapshot directory to trigger a downgrade-and-relaunch flow.
  2. COM Elevation Trigger: The attacker calls IElevator2::RunIsolatedChrome passing the payload arguments safely positioned after a switch terminator, for example: chrome.exe -- /gpu-launcher=C:\a\e.exe /no-sandbox.
  3. First Hop Safety: The elevation service correctly filters switches and appends -- to ensure the payload arguments remain treated as arguments (hop 1 is secure).
  4. Relaunch Bug Trigger: During startup, Chrome detects the pending downgrade and triggers a relaunch using RestartMode::kRestartThisSession. During this reconstruction, the -- terminator is dropped.
  5. Second Hop Launch: The child process is spawned via plain CreateProcess (inheriting the elevated isolation token carrying the GOOGLECHROME://ISOLATION security attribute). The child re-parses /gpu-launcher as an active switch, executing the attacker's wrapper e.exe inside the privileged isolation context. This allows the attacker to query IElevator::DecryptData and bypass App-Bound Encryption.

Note: These are potential steps derived from code analysis; our tooling does not currently support running live exploit validation.

Proposed Fix

In chrome/browser/lifetime/browser_shutdown.cc, when copying arguments under RestartMode::kRestartThisSession, ensure that if old_cl.GetArgs() is not empty, the switch terminator -- is appended to the command line before adding the individual arguments:

C++
case RestartMode::kRestartThisSession:
  if (!old_cl.GetArgs().empty()) {
    new_cl.AppendArgNative(FILE_PATH_LITERAL("--"));
    for (const auto& arg : old_cl.GetArgs()) {
      new_cl.AppendArgNative(arg);
    }
  }
  break;

Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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

Likely the code copies arguments from the old command line without re-adding the '--' terminator that base::CommandLine::GetArgs() strips out, so slash-prefixed arguments are later interpreted as switches.

Impact

An attacker with local medium-integrity access could potentially run arbitrary code under the privileged App-Bound Encryption isolation token, allowing them to query IElevator::DecryptData and bypass App-Bound Encryption; the report notes these are potential steps from code analysis without live exploit validation.

What the attacker needed

Local medium-integrity access; enterprise-managed Windows host; ability to write to user data directory

The fix

The code should be fixed by re-inserting the '--' switch terminator before appending arguments when copying the command line under RestartMode::kRestartThisSession.

How it was found

  1. Write a fake higher version string to the Last Version file and set up a mock snapshot directory to trigger a downgrade-and-relaunch flow.
  2. Call IElevator2::RunIsolatedChrome with payload arguments placed after a switch terminator.
  3. The elevation service filters switches and appends '--', keeping the payload as arguments.
  4. Chrome detects the pending downgrade and triggers a relaunch using RestartMode::kRestartThisSession, dropping the '--' terminator.
  5. The child process is spawned via CreateProcess with the elevated isolation token, re-parsing '/gpu-launcher' as an active switch and executing the attacker's wrapper.

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 Chrome restarts itself, it copies the old command line to the new process but forgets to keep a special marker ('--') that tells Windows 'everything after this is just data, not a command'. Without that marker, a string like '/gpu-launcher=...' can be treated as a real command switch. An attacker who can already run code on the machine might use this to make Chrome run their program with higher privileges.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.