Skip to content
RCE Advisory Advanced CVE-2026-8571

Insufficient policy enforcement in GPU (CVE-2026-8571)

The macOS GPU sandbox grants the GPU process access to the Launch Services database and write access to the user cache directory, allowing a compromised GPU process to register a malicious app and hijack URL schemes such as mailto. This enables code execution outside the sandbox when a URL scheme is triggered.

Mark Blaszczyk Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Steps to reproduce the problem

Tested on 147.0.7704.0

  1. patch -p1 < poc.diff
  2. gn gen out/Default --args='is_debug=false' && autoninja -C out/Default content_shell
  3. out/Default/Content\ Shell.app/Contents/MacOS/Content\ Shell "data:text/html,<h1>trigger</h1>"
  4. Wait a few seconds for the GPU process to register the handler, then quit content_shell.
  5. Trigger mailto: from terminal, Chrome, or any app: open "mailto:[email protected]"
  6. Observe: ~/Desktop/gpu_escape_poc.txt is created and TextEdit opens. The file contains uname -a and uptime output, proving code execution outside the GPU sandbox.

Problem Description

The GPU sandbox policy (sandbox/policy/mac/gpu.sb line 28) grants com.apple.lsd.modifydb Mach service access. This is GPU-only, not granted to renderer, audio, or utility sandboxes.

Combined with the GPU sandbox's file-write permission to DARWIN_USER_CACHE_DIR (gpu.sb lines 122-126), a compromised GPU process can:

  1. Resolve DARWIN_USER_CACHE_DIR via confstr(_CS_DARWIN_USER_CACHE_DIR)
  2. Write a .app bundle there (sandbox permits file-write)
  3. Strip quarantine xattr via removexattr() (permitted because gpu.sb grants file-write* to this directory, which includes file-write-xattr)
  4. Call LSRegisterURL to register the app with Launch Services
  5. Call LSSetDefaultHandlerForURLScheme to claim mailto: (and chickennuggets://)
  6. When Chrome loads a page with window.location = "mailto:...", Chrome dispatches to the OS, which launches the hijacked handler outside the sandbox

The PoC demonstrates this from inside HandleRasterCHROMIUM in gpu/command_buffer/service/raster_decoder.cc, reachable from a compromised renderer via GPU command buffer IPC. The payload writes a file to ~/Desktop/gpu_escape_poc.txt and opens TextEdit.

The mailto: hijack is particularly impactful: every website with a "contact us" or "email" link uses mailto:, and the hijack is system-wide (affects Chrome, Safari, Slack, and every other application). window.location = "mailto:..." fires automatically on page load with zero user interaction.

Additional Comments

  • Content Shell does not dispatch external protocol navigations. In Chrome, window.location = "mailto:..." will trigger the RCE.
  • com.apple.lsd.modifydb was added in f92299c (2019-04-24, bug 871280): "macOS V2 Sandbox: Allow lsd.modifydb in GPU v2 sandbox." Present for ~7 years across all Chrome releases since Chrome 76.

Summary

GPU sandbox escape on macOS via lsd.modifydb > RCE

Custom Questions

Type of crash:

no crash, clean sandbox escape.

Crash state:

No crash reports available as we are working within the GPU sandbox policy (sandbox/policy/mac/gpu.sb line 28). output of ~/Desktop/gpu_escape_poc.txt:

Darwin Macbook.local 25.3.0 Darwin Kernel Version 25.3.0: Wed Jan 28 20:53:31 PST 2026; root:xnu-12377.81.4~5/RELEASE_ARM64_T8122 x86_64
 0:16  up 21 days,  3:17, 18 users, load averages: 1.99 1.71 1.81

Reporter credit:

Mark Blaszczyk

Additional Data

Category: Security
Chrome Channel: Stable
Regression: N/A \

The original report as published on the Chromium issue tracker, by Mark Blaszczyk. 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

Impact

A compromised GPU process can escape the sandbox and execute arbitrary code outside it, and the mailto: hijack is system-wide and can be triggered automatically by a webpage with zero user interaction.

What the attacker needed

Compromised GPU process; macOS; Chrome or other app that dispatches mailto:

How it was found

  1. Apply the provided patch to the Chromium source.
  2. Build content_shell with the given GN arguments.
  3. Run content_shell with a data URL to start the GPU process.
  4. Wait for the GPU process to register the handler, then quit content_shell.
  5. Trigger a mailto: URL from the terminal or any app.
  6. Observe that a file is created on the Desktop and TextEdit opens, proving code execution outside the GPU 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 sandbox is a security mechanism that restricts what a program can do. Here, the GPU process (which handles graphics) was allowed to modify the system's list of default apps and write files to a cache folder. An attacker who already controlled the GPU process could use these permissions to create a fake app and make it the default handler for email links, so that clicking an email link runs their code outside the sandbox.

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.