Skip to content
RCE Advisory Advanced CVE-2026-13794

Insufficient validation of untrusted input in WebAppInstalls (CVE-2026-13794)

On Windows, a PWA's manifest-controlled name is used to build the launcher executable filename, and a name containing a switch-like token can be misparsed so that Chrome treats part of the path as real command-line switches. An attacker could then get Chrome to launch an attacker-chosen wrapper when starting a utility process, executing code as the current user.

Daniel Rodríguez Follow

Originally disclosed on Chrome VRP

Bounty$2,500 High View original
  • Fix shipped in 46 days

Report description

Windows PWA handler launcher filename can smuggle --utility-cmd-prefix from manifest name, causing Chrome to execute attacker-chosen wrapper on utility process launch.


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium/src


The problem

Please describe the technical details of the vulnerability

Bug location: Chromium src:

  • base/command_line.cc
  • chrome/browser/web_applications/os_integration/web_app_handler_registration_utils_win.cc
  • chrome/browser/web_applications/chrome_pwa_launcher/chrome_pwa_launcher_main.cc
  • content/browser/service_host/utility_process_host.cc

The problem: On Windows, a manifest-controlled PWA name is used to build the app-specific launcher .exe filename. If the name contains --single-argument, Chromium's Windows parser matches that token inside the quoted executable path instead of the real shell-handler switch. The PWA launcher then passes the resulting tail to chrome.exe, where it is parsed as real switches. With --utility-cmd-prefix, Chrome launches an attacker-chosen wrapper when starting a utility process.

The cause: base::CommandLine::ParseAsSingleArgument() searches the raw command line with raw_command_line_string_.find(single_arg_switch). This is unsafe when the quoted program path itself can contain --single-argument. PWA Windows file/protocol handler registration derives that program path from the web app's manifest name, which is attacker-controlled.

Impact analysis

An attacker-controlled website can offer a PWA for installation. After the user installs it and later invokes its registered protocol/file handler, Chrome can execute an attacker-chosen command as the current Windows user. No admin privileges are required. The confirmed PoC uses calc.exe as a benign wrapper.


The cause

What version of Chrome have you found the security issue in?

148.0.7778.168 stable

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Remote Code Execution (RCE)

How would you like to be publicly acknowledged for your report?

Daniel Rodríguez

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

Chrome on Windows lets a Progressive Web App register itself as the handler for file types and protocols. When a user installs such a PWA, Chromium creates an app-specific launcher executable, and that launcher is what Windows invokes when a matching file or URL is opened. The launcher's job is to hand control back to chrome.exe with the right switches so the correct app window opens.

The filename of that launcher is derived from the web app's manifest name. The manifest is supplied by the website offering the PWA, so the name is attacker-controlled input that ends up inside a command line. This report shows how a crafted name can smuggle a real Chrome switch into that command line and get Chrome to run an attacker-chosen wrapper whenever it starts a utility process.

The affected component is WebAppInstalls, and the issue was reported through the Chrome Vulnerability Reward Program against the Chromium source repository at https://chromium.googlesource.com/chromium/src. The researcher tested Chrome 148.0.7778.168 stable and classified the issue as Remote Code Execution (RCE), not a crash.

Setup

The preconditions are all on the victim's machine and need no special privileges:

  1. A Windows installation of Chrome, in the version tested: 148.0.7778.168 stable.
  2. A website controlled by the attacker that offers a PWA for installation, with a manifest name chosen by the attacker.
  3. The user installs that PWA.
  4. The user later invokes the PWA's registered protocol or file handler.

No administrator rights are required at any point. The confirmed proof of concept used calc.exe as a benign wrapper to demonstrate execution.

The relevant code lives in four places in the Chromium tree:

  • base/command_line.cc
  • chrome/browser/web_applications/os_integration/web_app_handler_registration_utils_win.cc
  • chrome/browser/web_applications/chrome_pwa_launcher/chrome_pwa_launcher_main.cc
  • content/browser/service_host/utility_process_host.cc

Finding it

The researcher's summary of the bug is that the Windows PWA handler launcher filename can smuggle --utility-cmd-prefix from the manifest name, causing Chrome to execute an attacker-chosen wrapper on utility process launch.

The chain of reasoning starts with how the launcher filename is built. On Windows, a manifest-controlled PWA name is used to construct the app-specific launcher .exe filename. If that name contains the token --single-argument, Chromium's Windows command line parser matches that token inside the quoted executable path rather than the real shell-handler switch. The PWA launcher then passes the resulting tail to chrome.exe, where it is parsed as genuine switches. Among those switches, --utility-cmd-prefix makes Chrome launch an attacker-chosen wrapper when it starts a utility process.

What makes this look wrong is the trust boundary: a string that a website supplies through its manifest ends up embedded in a command line that Chrome later parses as switches. The parser is supposed to find a specific switch, but because it searches the raw command line text, a lookalike token inside the quoted program path is found first.

Exploitation

Step 1: Offer a PWA with a crafted manifest name

The attacker hosts a site that offers a PWA for installation. The manifest name is chosen so that, once it is turned into the launcher filename, it contains the token --single-argument together with the switch the attacker wants Chrome to see. The report does not include the exact manifest name or the exact wrapper command used.

Step 2: Get the PWA installed and its handler registered

The user installs the PWA. During Windows file or protocol handler registration, Chromium derives the program path for the app-specific launcher from the web app's manifest name. That is the point where the attacker-controlled string becomes part of the command line that Windows will later use to start the launcher.

Step 3: Trigger the registered handler

Windows starts the launcher executable whose path contains the crafted name.

Step 4: The parser matches the wrong token

Inside the launcher, base::CommandLine::ParseAsSingleArgument() searches the raw command line with raw_command_line_string_.find(single_arg_switch). Because the quoted program path itself can contain --single-argument, the search matches that occurrence instead of the real shell-handler switch. The launcher therefore passes the resulting tail to chrome.exe.

Step 5: Chrome parses the tail as real switches

chrome.exe parses the tail as genuine switches. With --utility-cmd-prefix present, Chrome launches an attacker-chosen wrapper when it starts a utility process. In the confirmed proof of concept the wrapper was calc.exe, used as a benign demonstration that the command runs as the current Windows user.

Root cause

The defect is in how the single-argument switch is located. base::CommandLine::ParseAsSingleArgument() uses a raw substring search over the whole command line:

Text
raw_command_line_string_.find(single_arg_switch)

That search does not distinguish between the switch as a real argument and the same text appearing inside the quoted executable path. When the program path is attacker-influenced, the first match can be the one inside the path, and everything after it is treated as the argument tail.

The reason the program path is attacker-influenced is the second half of the bug: Windows PWA file and protocol handler registration derives the launcher program path from the web app's manifest name. The manifest is website-controlled, so the name flows into a command line without being constrained in a way that keeps it from being parsed as switches.

Impact

An attacker-controlled website can offer a PWA for installation. After the user installs it and later invokes its registered protocol or file handler, Chrome can execute an attacker-chosen command as the current Windows user. No administrator privileges are required. The confirmed proof of concept used calc.exe as a benign wrapper, so the demonstrated effect is code execution with the victim's privileges rather than a privilege escalation.

The exploit depends on two user actions: installing the PWA and then invoking its registered handler. The report does not describe any case that works without those steps.

Fix

The report does not describe the change that was made. The area that needs attention follows from the root cause: the single-argument parsing should not match a token that sits inside the quoted program path, and the launcher filename derived from the manifest name should not be able to introduce switch-like tokens into the command line. Which of these was changed, and how, is not stated.

Variants to test

  1. Other switches smuggled through the same manifest-name path. A positive result is any switch that changes what chrome.exe executes or loads when the handler is invoked.
  2. Other places where a manifest-controlled string becomes part of a command line on Windows, such as shortcut or registration entries. A positive result is a crafted name that alters parsing when the entry is used.
  3. Other callers of ParseAsSingleArgument(). A positive result is a caller where the quoted program path can contain the single-argument token and the tail is then trusted.
  4. Other platforms' handler registration code paths. A positive result is the same confusion between a path component and a switch on a non-Windows platform.

Hunting notes

This kind of bug hides where user- or website-controlled strings are turned into filenames, shortcuts or registration entries that later become command lines. During recon, the signals are features that generate per-app executables or registry entries from names the user or a website supplies, and parsers that search a raw command line string rather than tokenising it.

The confirmed proof of concept used calc.exe as a benign wrapper.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

Chrome on Windows can install something called a Progressive Web App, or PWA. A PWA is a website that you can "install" so it behaves a bit like a normal desktop program: it gets its own icon, its own window, and it can be set up to open certain files or certain kinds of links for you. For example, a web-based image editor could register itself so that double-clicking a .png file opens it.

When you install such a PWA, Chrome creates a small helper program on your computer, a launcher, whose job is to start Chrome again with the right settings so the correct app window opens. The name of that helper program is built from the name the website gives its app. Because the website chooses that name, a malicious website can choose a name that contains special text Chrome normally treats as an instruction. When you later open a file or link that belongs to that app, Chrome reads those instructions and ends up running a program the attacker picked, with your user rights.

The researcher reported this through the Chrome Vulnerability Reward Program, against the Chromium source code repository at https://chromium.googlesource.com/chromium/src. The tested version was Chrome 148.0.7778.168 stable, and the issue was classified as Remote Code Execution (RCE), meaning an attacker can get code to run on your machine, rather than as a crash.

Background you need first

A few ideas come up again and again in this report, so here they are from scratch.

Command line. When one program starts another, it can pass it extra text called arguments or switches. On Windows you might see something like notepad.exe C:\notes.txt: the program is notepad.exe and the argument is the file to open. Switches usually start with --, for example --utility-cmd-prefix, and they change how the program behaves. The whole line of text is the command line.

Quoting. Because arguments can contain spaces, they are often wrapped in double quotes. Windows then knows that everything inside the quotes is one piece, even if it has spaces in it. A path like "C:\Program Files\Chrome\chrome.exe" is quoted for exactly this reason.

Manifest. A PWA comes with a small file, the manifest, that describes the app: its name, its icon, which links or file types it wants to handle. The website supplies this file, so everything in it is under the website's control, not Chrome's.

Handler. A handler is the program Windows calls when you open a particular kind of file or link. If a PWA registers as the handler for a protocol (a link scheme such as mailto:) or a file type, then opening such a link or file starts that PWA's launcher.

Utility process. Chrome does not do all its work in one program. It splits tasks into helper processes, and a utility process is one of these helpers. Chrome starts them with a command line of its own, and --utility-cmd-prefix is a switch that tells Chrome to put a given command in front of the helper it starts.

Remote Code Execution (RCE). This is the name for a bug where an attacker can make your computer run code of their choosing. It is considered serious because the attacker is no longer limited to what the website was supposed to do.

Trust boundary. This is the line between data you can rely on and data you cannot. A website's manifest name is on the untrusted side. A command line that Chrome itself builds is on the trusted side. The bug is that a string crossed that line and was then treated as an instruction.

The setup

Everything the attack needs is on the victim's computer, and none of it needs special rights:

  1. Chrome installed on Windows, in the tested version 148.0.7778.168 stable.
  2. A website run by the attacker that offers a PWA for installation, with a manifest name the attacker has chosen.
  3. The user installs that PWA.
  4. The user later opens a file or link that the PWA registered itself to handle.

No administrator rights are needed at any point. The confirmed proof of concept used calc.exe, the Windows calculator, as a harmless stand-in for whatever program an attacker might really want to run. Running the calculator proves that a chosen program started, without doing any damage.

The relevant code sits in four places in the Chromium source tree:

  • base/command_line.cc
  • chrome/browser/web_applications/os_integration/web_app_handler_registration_utils_win.cc
  • chrome/browser/web_applications/chrome_pwa_launcher/chrome_pwa_launcher_main.cc
  • content/browser/service_host/utility_process_host.cc

These are file paths inside the Chromium project. The first handles parsing command lines, the second handles registering a PWA as a Windows handler, the third is the launcher program itself, and the fourth is where Chrome starts utility processes.

Finding it

The researcher's one-line summary is that the Windows PWA handler launcher filename can smuggle --utility-cmd-prefix from the manifest name, causing Chrome to execute an attacker-chosen wrapper on utility process launch.

The reasoning starts with how the launcher's filename is built. On Windows, the name from the PWA's manifest is used to construct the filename of the app-specific launcher .exe. If that name contains the text --single-argument, then Chromium's Windows command line parser finds that text inside the quoted path of the program instead of finding the real switch that the shell handler passed. The launcher then hands the rest of the command line to chrome.exe, and there it is read as genuine switches. One of those switches, --utility-cmd-prefix, makes Chrome start an attacker-chosen wrapper whenever it launches a utility process.

The thing that makes this wrong is the trust boundary. A string a website supplies in its manifest ends up inside a command line that Chrome later reads as instructions. The parser is meant to find one particular switch, but because it searches the raw text of the whole command line, a lookalike piece of text inside the quoted program path is found first.

Exploitation

Step 1: Offer a PWA with a crafted manifest name

The attacker hosts a site that offers a PWA for installation. The manifest name is chosen so that, once it has been turned into the launcher filename, it contains the text --single-argument together with the switch the attacker wants Chrome to see. The report does not give the exact manifest name or the exact wrapper command.

Step 2: Get the PWA installed and its handler registered

The user installs the PWA. While Windows file or protocol handler registration happens, Chromium works out the program path of the app-specific launcher from the web app's manifest name. That is the moment the attacker-controlled string becomes part of the command line Windows will later use to start the launcher.

Step 3: Trigger the registered handler

The user later opens the PWA's registered protocol or file handler. Windows starts the launcher program whose path contains the crafted name.

Step 4: The parser matches the wrong piece of text

Inside the launcher, base::CommandLine::ParseAsSingleArgument() searches the raw command line with raw_command_line_string_.find(single_arg_switch). Because the quoted program path itself can contain --single-argument, the search finds that occurrence instead of the real shell-handler switch. The launcher therefore passes the rest of the line to chrome.exe.

Step 5: Chrome reads the rest as real switches

chrome.exe reads that remainder as genuine switches. With --utility-cmd-prefix among them, Chrome starts an attacker-chosen wrapper whenever it launches a utility process. In the confirmed proof of concept the wrapper was calc.exe, used to show, harmlessly, that the command runs with the current Windows user's rights.

Root cause

The defect is in how the single-argument switch is located. base::CommandLine::ParseAsSingleArgument() uses a plain text search over the whole command line:

Text
raw_command_line_string_.find(single_arg_switch)

Line by line: raw_command_line_string_ is the entire command line as one long piece of text. .find(...) looks for the first place where the given text appears and returns its position. single_arg_switch is the switch the code is looking for. The problem is that this search cannot tell the difference between the switch as a real argument and the same text appearing inside the quoted path of the program. When the program path is influenced by an attacker, the first match can be the one inside the path, and everything after it is treated as the argument tail.

The reason the program path is influenced by an attacker is the second half of the bug: Windows PWA file and protocol handler registration works out the launcher's program path from the web app's manifest name. The manifest is controlled by the website, so the name flows into a command line without anything stopping it from being read as switches.

Impact

A website controlled by an attacker can offer a PWA for installation. After the user installs it and later opens its registered protocol or file handler, Chrome can run an attacker-chosen command with the current Windows user's rights. No administrator privileges are required. The confirmed proof of concept used calc.exe as a harmless wrapper, so what was demonstrated is code execution with the victim's own rights, not an escalation to more powerful rights.

The attack depends on two actions by the user: installing the PWA, and then opening its registered handler. The report does not describe any way to make it work without those steps.

Fix

The area that needs attention follows from the root cause: the single-argument parsing should not match text that sits inside the quoted program path, and the launcher filename built from the manifest name should not be able to introduce switch-like text into the command line. Which of these was changed, and how, is not stated.

Variants to test

  1. Other switches smuggled through the same manifest-name path. A positive result is any switch that changes what chrome.exe runs or loads when the handler is invoked.
  2. Other places where a manifest-controlled string becomes part of a command line on Windows, such as shortcuts or registration entries. A positive result is a crafted name that changes how the entry is read.
  3. Other callers of ParseAsSingleArgument(). A positive result is a caller where the quoted program path can contain the single-argument text and the remainder is then trusted.
  4. Handler registration code paths on other platforms. A positive result is the same confusion between a piece of a path and a switch on a platform other than Windows.

Hunting notes

This kind of bug hides wherever strings controlled by a user or a website are turned into filenames, shortcuts or registration entries that later become command lines. During recon, the signals are features that generate a separate program or registry entry per app from a name the user or a website supplies, and parsers that search a raw command line string instead of splitting it into proper pieces.

The confirmed proof of concept used calc.exe as a benign wrapper.

Glossary

  • Argument: extra text passed to a program when it starts, telling it what to do.
  • Command line: the full line of text used to start a program, including the program and its arguments.
  • Handler: the program Windows calls when you open a particular file type or link scheme.
  • Launcher: a small helper program that starts the main program with the right settings.
  • Manifest: a file supplied by a website that describes a PWA, including its name and what it wants to handle.
  • Progressive Web App (PWA): a website that can be installed so it behaves like a desktop program.
  • Protocol: a link scheme such as mailto: that tells Windows which program should open a link.
  • Quoting: wrapping text in double quotes so Windows treats it as one piece even if it contains spaces.
  • Remote Code Execution (RCE): a bug that lets an attacker make your computer run code of their choosing.
  • Switch: an argument that starts with -- and changes how a program behaves.
  • Trust boundary: the line between data you can rely on and data you cannot.
  • Utility process: one of the helper processes Chrome starts to do parts of its work.
  • Wrapper: a program placed in front of another so that it runs first.

More by Daniel Rodríguez

View all

1 more disclosed report, best first.

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.