Skip to content
Advisory Advanced

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.

Nitesh Surana Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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.

Nitesh Surana (niteshsurana.com) of TrendAI Research, on the Zero Day Initiative

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.

More by Nitesh Surana

View all

3 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.