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.
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
Steps to reproduce the problem
Tested on 147.0.7704.0
patch -p1 < poc.diffgn gen out/Default --args='is_debug=false' && autoninja -C out/Default content_shellout/Default/Content\ Shell.app/Contents/MacOS/Content\ Shell "data:text/html,<h1>trigger</h1>"- Wait a few seconds for the GPU process to register the handler, then quit content_shell.
- Trigger mailto: from terminal, Chrome, or any app:
open "mailto:[email protected]" - Observe:
~/Desktop/gpu_escape_poc.txtis created and TextEdit opens. The file containsuname -aanduptimeoutput, 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:
- Resolve
DARWIN_USER_CACHE_DIRviaconfstr(_CS_DARWIN_USER_CACHE_DIR) - Write a
.appbundle there (sandbox permits file-write) - Strip quarantine xattr via
removexattr()(permitted becausegpu.sbgrantsfile-write*to this directory, which includesfile-write-xattr) - Call
LSRegisterURLto register the app with Launch Services - Call
LSSetDefaultHandlerForURLSchemeto claimmailto:(andchickennuggets://) - 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.modifydbwas 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 \
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
- Apply the provided patch to the Chromium source.
- Build content_shell with the given GN arguments.
- Run content_shell with a data URL to start the GPU process.
- Wait for the GPU process to register the handler, then quit content_shell.
- Trigger a mailto: URL from the terminal or any app.
- 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.