Skip to content
Path traversal Advisory Advanced CVE-2026-17893

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

The macOS user-scope updater opened a download destination path without preventing symbolic link following, so a compromised sandboxed child process sharing the same temporary directory could plant a symlink and have the unsandboxed updater write to a file outside the sandbox. This could allow a sandbox escape by overwriting user configuration files or launch agents.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 43 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: A potential Time-of-Check to Time-of-Use (TOCTOU) symlink vulnerability in the macOS user-scope GoogleUpdater allows a compromised sandboxed process to overwrite arbitrary files outside the sandbox. Because the out-of-process fallback fetcher opens the download target path without the FLAG_NO_FOLLOW flag, it can be coerced into following symbolic links created by a sandboxed process inside the shared temporary directory. An attacker could exploit this to escape the sandbox by overwriting user configuration files or launch agents.

Affected files:

  • chrome/updater/net/network_fetcher_mac.mm
  • components/update_client/url_fetcher_downloader.cc
  • chrome/updater/net/fallback_net_fetcher.cc

Estimated timestamp from git blame: 2024-08-05

Description

A potential Time-of-Check to Time-of-Use (TOCTOU) symbolic link traversal vulnerability exists in the macOS user-scope GoogleUpdater during out-of-process fallback download operations.

In chrome/updater/net/network_fetcher_mac.mm (lines 805-834), OutOfProcessNetworkFetcher::DownloadToFile opens the target download path via base::File using the flags FLAG_OPEN_ALWAYS | FLAG_WRITE but does not include FLAG_NO_FOLLOW:

C++
base::OnceClosure OutOfProcessNetworkFetcher::DownloadToFile(
    const GURL& url,
    const base::FilePath& file_path, ...) {
  ...
  base::ThreadPool::PostTaskAndReplyWithResult(
      FROM_HERE, {base::MayBlock()},
      base::BindOnce(
          [](const base::FilePath& file_path) {
            return base::File(file_path, base::File::FLAG_OPEN_ALWAYS |
                                             base::File::FLAG_WRITE);
          },
          file_path),
      base::BindOnce(&OutOfProcessNetworkFetcher::DoDownloadFile,
                     base::Unretained(this), url, ...));
  return base::DoNothing();
}

On POSIX/macOS, base::File::DoInitialize translates the omission of FLAG_NO_FOLLOW into an open(path, ...) call without O_NOFOLLOW (see base/files/file_posix.cc).

Trust Boundary Crossing

The user-scope GoogleUpdater is unsandboxed and runs under the same UID as the Chrome browser, meaning it shares the macOS per-UID temporary directory _CS_DARWIN_USER_TEMP_DIR with Chrome's sandboxed child processes.

Because the browser sets this path as a sandbox parameter (darwin-user-temp-dir), macOS Seatbelt profiles for child processes (such as the GPU, Network, or On-Device Model execution processes) explicitly grant full file-write* or subpath-write privileges on that directory:

SCHEME
; sandbox/policy/mac/gpu.sb
(allow file-read* file-write-data file-write-create file-write-owner file-write-unlink
  (subpath (param darwin-user-temp-dir)) ...)

This permits a compromised, sandboxed child process to write, create, and link file entries inside this shared temporary directory.

Potential Attack Scenario

Note: These are potential steps. Our security review tooling does not currently have the capability to execute code or dynamically verify this exploitation path.

  1. An attacker compromises a sandboxed child process (e.g., the Network Service) and monitors the shared temporary directory (_CS_DARWIN_USER_TEMP_DIR) for the creation of component update directories (which match the pattern *_chrome_url_fetcher_*).

  2. When a directory like chrome_url_fetcher_Ab12Cd is detected, the compromised child process immediately creates a symbolic link at the expected download destination path, pointing to a sensitive file in the user's home directory outside the sandbox (e.g., ~/.zprofile or ~/Library/LaunchAgents/com.victim.plist):

    Bash
    symlink("/Users/victim/.zprofile", "/var/folders/.../T/chrome_url_fetcher_Ab12Cd/component.crx")
    
  3. The attacker triggers or waits for a network disruption to fail the primary in-process NSURLSession download task, forcing the update client to fallback to the out-of-process downloader via FallbackNetFetcher.

  4. The unsandboxed OutOfProcessNetworkFetcher::DownloadToFile opens the destination file path. Due to the lack of O_NOFOLLOW (FLAG_NO_FOLLOW), the kernel resolves the symlink and opens the target file (~/.zprofile) with write privileges, returning a valid file descriptor.

  5. This file descriptor is sent over Mojo to the network worker helper, which writes the downloaded payload starting from offset 0, overwriting or creating the target file outside the sandbox and enabling a sandbox escape.

Suggested Fix

Modify chrome/updater/net/network_fetcher_mac.mm to include base::File::FLAG_NO_FOLLOW when opening the path in DownloadToFile:

C++
[](const base::FilePath& file_path) {
  return base::File(file_path, base::File::FLAG_OPEN_ALWAYS |
                                   base::File::FLAG_WRITE |
                                   base::File::FLAG_NO_FOLLOW);
}

Evaluated with Chrome root at commit: 75203b87cbf6681eb7c7dda8e1d0bf781538c76a


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 download path was opened with write flags but without a no-follow flag, so the operating system resolved any symbolic link at that path.

Impact

A compromised sandboxed process could overwrite arbitrary user files outside the sandbox, potentially escaping the sandbox; the report notes the steps are potential and were not dynamically verified.

What the attacker needed

Compromised sandboxed child process; shared per-UID temp directory; primary download fails to trigger fallback

The fix

The download path should be opened with the no-follow flag so symbolic links are refused.

How it was found

  1. Compromise a sandboxed child process and watch the shared temporary directory for new component update directories.
  2. Create a symbolic link at the expected download destination pointing to a sensitive file outside the sandbox.
  3. Cause the primary in-process download to fail so the updater falls back to the out-of-process downloader.
  4. The unsandboxed downloader opens the destination, follows the link and returns a writable descriptor to the target file.
  5. The downloaded payload is written from offset zero, overwriting the target file outside the sandbox.

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 symbolic link is a shortcut file that points to another file. The updater was meant to write a download into a temporary folder, but it followed such a shortcut instead of refusing it, so it could end up writing to a sensitive file elsewhere on the machine. Because the updater runs with more freedom than the sandboxed process that planted the shortcut, this could let an attacker break out of the sandbox.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.