Skip to content
Race condition Advisory Advanced CVE-2026-91744

Race condition in PlatformIntegration (CVE-2026-91744)

A compromised sandboxed child process can replace a staged zip file with a symbolic link because the browser uses a predictable temporary directory writable by the child. The browser then follows the symlink and streams the contents of an arbitrary user file back to the renderer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

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: When a user uploads a macOS package, the browser stages the zipped package under a predictable path inside the user's temporary directory. Because sandboxed child processes have read/write access to this temporary directory, a compromised child can exploit a race condition to replace the staged zip with a symbolic link, allowing the child to read arbitrary user files via the browser process.

Affected files:

  • chrome/browser/file_select_helper_mac.mm
  • content/browser/web_contents/file_chooser_impl.cc
  • chrome/browser/file_select_helper.cc
  • content/browser/blob_storage/file_backed_blob_factory_base.cc
  • storage/browser/file_system/local_file_stream_reader.cc

Estimated timestamp from git blame: 2014-10-10

Summary

A potential security vulnerability exists on macOS where a compromised sandboxed child process (such as the Network Service, GPU process, or On-Device Model execution process) can exploit a race condition during the upload of file packages. Because the browser stages the zipped package inside a predictable, sandbox-writable temporary directory, the compromised child can replace the staged file with a symbolic link. When the browser subsequently reads this path, it acts as a confused deputy, following the symlink and streaming the target file's contents back to the renderer process.

Note: These are potential steps and analysis derived from manual code review, as our automated security tools do not have the capability to execute code.

Code Analysis and Root Cause

When a user selects a macOS package (such as a .pages or .app bundle) using a file input, the browser process zips the package to a temporary path under the per-user temporary directory:

chrome/browser/file_select_helper_mac.mm:

C++
base::FilePath ZipDestination(const base::FilePath& path) {
  base::FilePath dest;
  if (!base::GetTempDir(&dest)) return base::FilePath();
  NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier];
  dest = dest.Append(AsStringPiece(bundleID));
  dest = dest.Append("zip_cache");
  NSString* guid = [[NSProcessInfo processInfo] globallyUniqueString];
  dest = dest.Append(AsStringPiece(guid));
  return dest;
}

This path resolves to <_CS_DARWIN_USER_TEMP_DIR>/com.google.Chrome/zip_cache/<guid>.

On macOS, sandboxed child processes (Network, GPU, ODM) are explicitly granted full read/write access to _CS_DARWIN_USER_TEMP_DIR via the Seatbelt sandbox profile:

SCHEME
(allow file-read* file-write* (subpath (param darwin-user-temp-dir)))

Because of this sandbox permission, a compromised child process can easily monitor the fixed <_CS_DARWIN_USER_TEMP_DIR>/com.google.Chrome/zip_cache/ directory.

Potential Attack Scenario

  1. A compromised child process arms a kqueue monitor on <_CS_DARWIN_USER_TEMP_DIR>/com.google.Chrome/zip_cache/.
  2. A web page induces the user to select a macOS package via the file picker.
  3. The browser zips the package, writes it to <guid>, and closes the file descriptor.
  4. The kqueue notification fires. The compromised process immediately unlinks the newly created <guid> file and replaces it with a symbolic link pointing to a target sensitive file (such as ~/Library/Application Support/Google/Chrome/Default/Cookies).
  5. The browser process grants the renderer read permission to <guid> via lexical path-based ChildProcessSecurityPolicyImpl::GrantReadFile.
  6. The renderer registers a file-backed blob for this path with expected_modification_time = std::nullopt.
  7. The browser's BlobStorageContext::BuildBlobInternal asynchronously retrieves the file's modification time using base::GetFileInfo. Because base::GetFileInfo resolves symbolic links, it reads the modification time of the target sensitive file.
  8. When the file is read, the browser's LocalFileStreamReader calls GetFileInfo again. The modification times match, bypassing the snapshot modification time check.
  9. LocalFileStreamReader opens the path without specifying O_NOFOLLOW, follows the symlink, and streams the sensitive file's contents back to the renderer over the Mojo blob pipe.

Suggested Fix

To prevent this vulnerability, do not use a predictable, shared directory for staging package zips. Instead, the browser should stage files inside a unique, randomly named temporary directory created with restricted permissions (e.g., using base::CreateUniqueTempDir), which prevents other sandboxed child processes from accessing or manipulating the staging directory.

Evaluated with Chrome root at commit: 57b021e1fdae94a215627d29aeb1ccf2eb5b3e91


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

The browser stages uploaded package zips in a predictable, sandbox-writable temporary directory and later opens the path without O_NOFOLLOW, so a symlink swap is followed.

Impact

A compromised sandboxed child process could read arbitrary user files through the browser process, but the report notes these are potential steps from manual code review and were not executed.

What the attacker needed

MacOS; compromised sandboxed child process; victim selects a macOS package via file picker

The fix

The browser should stage package zips in a unique, randomly named temporary directory with restricted permissions so other sandboxed processes cannot access or manipulate it.

How it was found

  1. A compromised child process monitors the predictable zip staging directory.
  2. A web page induces the user to select a macOS package via the file picker.
  3. The browser zips the package and writes it to a GUID-named file.
  4. The child process unlinks the new file and replaces it with a symlink to a sensitive file.
  5. The browser grants the renderer read permission and the renderer registers a file-backed blob.
  6. The browser follows the symlink and streams the sensitive file's contents to the renderer.

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 you upload a file, the browser sometimes makes a temporary copy in a shared folder. A malicious program running inside the browser's sandbox can watch that folder and swap the copy for a shortcut (a symbolic link) to a sensitive file. The browser then reads the shortcut and hands the sensitive file's contents back to the attacker.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.