Insufficient validation of untrusted input in Chromoting (CVE-2026-11112)
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 56 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 path traversal vulnerability exists in the Chrome Remote Desktop native messaging host for Linux. By compromising an allowlisted extension, an attacker can send a crafted deletePairedClient request containing ../ sequences to delete arbitrary .json files on the host system.
Affected files:
remoting/host/pairing_registry_delegate_linux.ccremoting/host/setup/me2me_native_messaging_host.ccremoting/host/pairing_registry.cc
Estimated timestamp from git blame: 2022-07-01
Vulnerability Description
A potential path traversal vulnerability has been identified in the Linux implementation of the Chrome Remote Desktop (CRD) PairingRegistryDelegate.
The CRD Native Messaging Host handles deletePairedClient requests by extracting a clientId from an incoming JSON message. This clientId is directly used to construct a file path for deletion. Because there is no validation or sanitization of the clientId string, an attacker can include directory traversal sequences (e.g., ../../) to navigate outside the intended configuration directory. The underlying POSIX system calls resolve the traversal components, resulting in the deletion of arbitrary .json files accessible to the user running the Native Messaging Host process.
Step-by-step Execution Trace
Me2MeNativeMessagingHost::OnMessagereceives a native messaging payload from the browser and parses it into a dictionary (remoting/host/setup/me2me_native_messaging_host.cc).- When the
typeisdeletePairedClient, it callsMe2MeNativeMessagingHost::ProcessDeletePairedClient. - The
clientIdstring is extracted directly from the message dictionary without any format validation or character filtering. - The
clientIdis passed viaPairingRegistry::DeletePairingto the platform delegate. - On Linux,
PairingRegistryDelegateLinux::Deleteis invoked (remoting/host/pairing_registry_delegate_linux.cc). - The method constructs a filename by formatting the string
"%s.json"with the attacker-controlledclientId. - This filename is appended to the base registry directory (
~/.config/chrome-remote-desktop/paired-clients) usingbase::FilePath::Append().Appendconcatenates paths verbatim, failing to neutralize../components. - The resulting
base::FilePathis passed tobase::DeleteFile(), which invokes the POSIXunlink/unlinkatsyscall. The OS resolves the../traversal, deleting the target file.
Potential Attack Scenario
Note: These are suggested/potential steps, as our tooling agent doesn't yet have the ability to run code and provide a working proof of concept.
-
An attacker compromises an extension allowlisted to communicate with the
com.google.chrome.remote_desktopnative messaging host (e.g., via a Cross-Site Scripting vulnerability in the CRD extension). -
The attacker uses the
chrome.runtime.sendNativeMessageAPI to send a malicious JSON payload to the Native Messaging Host:JSON { "type": "deletePairedClient", "clientId": "../../../../../../../../tmp/target" } -
The host process constructs the deletion path as
~/.config/chrome-remote-desktop/paired-clients/../../../../../../../../tmp/target.json. -
The host OS deletes
/tmp/target.json. The attacker can target any.jsonfile that the active user has permissions to delete, potentially leading to denial of service or configuration disruption.
Suggested Fix
To mitigate this vulnerability, the clientId should be strictly validated upon extraction. Legitimate CRD client IDs are standard UUIDs (v4). Enforcing that the clientId is a valid UUID before passing it to the registry will safely reject malicious traversal sequences.
In Me2MeNativeMessagingHost::ProcessDeletePairedClient, validate the clientId:
std::string* client_id =
message.FindString(protocol::PairingRegistry::kClientIdKey);
if (!client_id || !base::Uuid::ParseLowercase(*client_id).is_valid()) {
OnError("Invalid or missing '" + std::string(protocol::PairingRegistry::kClientIdKey) + "'.");
return;
}
Additionally, standardizing path sanitization in PairingRegistryDelegateLinux::Delete (e.g., validating that the final path remains a child of the intended directory) would provide Defense in Depth.
Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234
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.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity path traversal bug in Chromoting (Google Chrome). Chrome VRP made it public on 2 June 2026 as CVE-2026-11112. Fixed in version 149.0.7827.53.
About Path traversal
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.