Docker Desktop for macOS Inference Server Permissive Allow List Sandbox Escape Vulnerability
The sandbox profile for Docker Desktop's inference server process on macOS allowed a permissive list of inputs, letting an attacker who already had low-privileged code execution inside the sandbox escape it. This allowed privilege escalation and arbitrary code execution in the context of the current user on the host system.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escape the model runner sandbox on affected installations of Docker Desktop for macOS. An attacker must first obtain the ability to execute low-privileged code within the sandbox in order to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 sandbox profile for the inference server process permitted a broader set of inputs or operations than necessary, weakening the isolation boundary.
Impact
An attacker with low-privileged code execution inside the sandbox could escape it and execute arbitrary code as the current user on the host macOS system.
What the attacker needed
Low-privileged code execution inside the sandbox; Docker Desktop for macOS
The fix
Docker issued an update to correct this vulnerability.
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 restricted environment meant to contain code so it cannot affect the rest of the computer. Here, the rules defining what the inference server process could access were too broad, so code already running inside the sandbox could break out and run commands as the logged-in user on the Mac. The attacker first needs a way to run low-privileged code inside that sandbox.