The app tried to open a private key. macOS said no: EPERM.
The same app then asked a GPU debugging helper to fetch a buffer from a capture trace. The helper returned the key's bytes.
That contrast is the heart of
CVE-2026-86928. We found
that a sandboxed app could make the per-user, unsandboxed
GPUToolsDebugService follow a symlink hidden inside a crafted .gputrace
bundle. The helper read a file the app could not open and delivered its
contents back over XPC as an ordinary trace-buffer response.
Key findings
- A third-party app carrying only
com.apple.security.app-sandboxcould reachcom.apple.gputools.servicethrough a lookup allowed by the default App Sandbox profile. - The app placed a
.gputracein its own container, changed one buffer entry from an embedded resource to a separate-file resource, and made the named sidecar a symlink to a sandbox-denied target. GPUToolsDebugServiceopened that sidecar under its own, broader per-user file authority and returned the target bytes throughfetch.- The proof compared the received bytes to the on-disk fixture with SHA-256 and a byte comparison. A disposable OpenSSH-format key was recovered in full; a separate 16 MiB fixture exercised a whole-file read.
- The demonstrated capability is reading same-user files outside the app's sandbox where the service itself has access. It is not a root-file read, TCC bypass, write primitive, or cross-user access.
At a glance
| Detail | Finding |
|---|---|
| Component | GPUToolsDebugService / GPUTools trace archive reader |
| Tested build | macOS 27.0 beta 26A5368g, Apple silicon |
| Attacker context | App Sandbox-only application, no private entitlement |
| Entry point | Default-allowed com.apple.gputools.service XPC lookup |
| Controlled input | Separate-file .gputrace entry and a symlink inside the trace bundle |
| Demonstrated impact | Byte-identical read of sandbox-denied, user-readable files |
| Public CVSS 3.1 | CISA ADP: 5.5 Medium |
| Fixed in | macOS Golden Gate 27 |
A trace can point outside itself
A GPU capture is not necessarily one self-contained blob. Its archive index can describe a buffer stored as a separate file alongside the trace. The debugging service has to resolve that sidecar when a client asks to fetch the buffer.
We started with a valid .gputrace. Inside the sandboxed app's container,
the PoC located the buf0 archive entry, changed its flags from 0x1 to
0x2 (separate file), and set its offset to zero. The sidecar name remained
the archive entry's 16-hex-character name, so the trace still looked like a
normal bundle layout. The decisive filesystem object was the sidecar: a
symlink to a file outside the app's container.
sandboxed app's trace / <buf0 sidecar name>
-> symlink to sandbox-denied file
fetch("resources/buffers/buf0")
-> GPUToolsDebugService opens sidecar
-> XPC response returns file bytes
The service's separate-file path merged the trace directory with the entry
name and opened the result read-only. On the tested build, that open did
not use O_NOFOLLOW, so the kernel followed the symlink. The helper was
running as the same user but without the caller's App Sandbox confinement.
The app's own direct open of both the target and the sidecar still failed.
This is a classic confused-deputy boundary in a less obvious place: a GPU debugging workflow. The service was authorized to read the file as the user; the sandboxed requester was not authorized to receive it.
The two reads that mattered
Our control was intentionally simple. The PoC created a disposable
OpenSSH-format private key with mode 0600 outside the app container. The
sandboxed app tried to open it directly and received EPERM. It also tried
to open the sidecar symlink directly and received EPERM again.
After loading the crafted trace, the app fetched resources/buffers/buf0.
This time it received NSData from the helper. The first bytes were the
OpenSSH private-key header, and the independently computed SHA-256 of the
received file-length prefix matched the on-disk fixture. A byte comparison
matched too.
| Path | Observed result |
|---|---|
| App opens key directly | Denied, EPERM |
| App opens sidecar directly | Denied, EPERM |
App fetches buf0 through GPUTools |
Key bytes returned over XPC |
| Independent comparison | Received file-length bytes identical to disk |
The small key occupied about 1.8 KB, while the captured buffer was 4 KB. The response therefore contained the key followed by zero-fill. We compared the file-length prefix, not the padded tail, and did not treat padding as a memory disclosure. With a buffer sized to a 16 MiB fixture, the PoC exercised the full-file case rather than only a short prefix.
The same mechanism applies to other non-TCC files the logged-in user can read but a sandboxed app cannot: for example, credentials in dot-directories or data belonging to another app's container. It does not grant the helper root authority or erase TCC's separate protections.
Why this was more than a permissive filename
The trace stayed inside the attacker's container. The target did not. The security decision had to follow the resolved file, not merely the apparent location of the archive entry.
The trace's sidecar name became a file-read instruction for a helper with broader authority. The decisive evidence was the contrast between two authorities on the same Mac: the app's direct access was denied, while the helper opened that very file and returned its bytes. The trace format supplied the indirection; the missing symlink and caller-boundary check turned it into a read across the sandbox.
Disclosure notes
During validation, we extended the test to a disposable private-key fixture and a 16 MiB whole-file comparison, then reported the sidecar issue to Apple. The helper’s authority remained limited to files available to the same user.
Remediation
Apple identifies macOS Golden Gate 27 as the fixed release.
Use Software Update to install the update. The tested vulnerable builds are documented above; the fixed versions come from Apple’s CVE record.
Disclosure timeline
Sandbox boundary read recorded
The beta-build run captured a direct denial followed by a successful outside-container marker fetch.
Fix released in macOS 27
Apple released the macOS version identified as fixed in the CVE record.
Apple advisory entry added
The GPUTools entry was added to the macOS 27 security notes, crediting Andrey Chernykh (BypassLabs.AI).
CVE record published
The official CVE record was published. This date is separate from the earlier release of the fix.