Hostile Inference: Exploiting Docker Model Runner for Container Escapes
Docker Model Runner (DMR) in Docker Desktop contains multiple vulnerabilities allowing container escapes to the host on macOS and Windows, including argument injection leading to arbitrary code execution and sandbox escapes.
An unauthenticated argument-injection vulnerability in Docker Model Runner's _configure endpoint allows containers with default privileges to supply arbitrary command-line arguments to the llama-server process running on the host. This leads to host file read/write access via llama-server flags that interact with the filesystem. On macOS, the Seatbelt sandbox profile permits file operations under certain directories, enabling overwriting of Docker Desktop VM data disks and extension assets. On Windows, the sandbox uses Job Objects which do not restrict filesystem access, allowing arbitrary file writes bounded only by user privileges. Attackers can control log contents via GGUF model metadata and chat templates to inject JavaScript payloads into Docker Extensions, achieving arbitrary code execution on the host. Additional sandbox escapes include a macOS Seatbelt escape via launchservicesd and a WSL2 VM-to-host escape via Docker Extensions. Fixes include removing and validating runtime flags in DMR, hardening the Seatbelt profile, and restricting extension installation.
0.70
(below the 0.75 AUTO threshold) and has not
passed automated verification. Inspect the source quote and affected packages manually
before acting on it.
Pre-CVE to NVD / OSV Lifecycle Tracker
Last checked 2026-11-25 19:59 UTCAffected Packages & Deterministic Ranges
| Ecosystem | Canonical PURL | Affected Range | Fixed Version | Grounding | Registry |
|---|---|---|---|---|---|
| GitHub | pkg:github/docker/docker-model-runner | < 1.0.16 | 1.0.16 | quote_only_weak | skipped |
Verbatim Grounded Evidence
Verified verbatim substring matches copied directly from the source article body.
“For ZDI-26-150, the fix came in three stages. 1. 0699420a (#482, 2025-12-05) removed runtime flags from POST /engines/_configure entirely, replacing them with structured backend-specific configuration. 2. 41dd3f13 (#518, 2025-12-16) reintroduced runtime flags but added validatePathSafety, which rejects any flag or value containing `/` or `\` - fixing the path operations. 3. 9acf1ed9 (#601, 2026-02-09) layered on a strict per-backend allowlist, so only safe flags such as --threads or --ctx-size pass validation. All three shipped in DMR v1.0.16 with a follow-up hardening commit 78504107 (#667) removing --trust-remote-code, an allowlisted flag that could allow models in vLLM to escape the container. Docker Desktop users received the fixed DMR via version 4.61.0 and later.”
“For ZDI-26-451, commit 98038869 modified the Seatbelt profile to deny Mach service lookups for com.apple.launchservicesd and com.apple.coreservices.launchservicesd, blocking the LaunchServices path.”
“In April 2025 we found that if the Docker Desktop VM is compromised, the “Allow only extensions distributed through the Docker Marketplace” flag could be toggled from the VM itself through the same backend socket. The backend socket is located at /run/host-services/backend.sock in the VM. It exposes an /app/settings API that answers both GET and POST, where GET returns the current settings and POST modifies them. Flipping onlyMarketPlaceExtensions re-enabled arbitrary extension installation, which in turn leads to arbitrary code execution on the host.”
- ARTICLE https://www.thezdi.com/blog/2026/11/17/hostile-inference-exploiting-docker-model-runner-for-container-escapes ↗
- WEB https://github.com/docker/model-runner ↗
- WEB https://github.com/docker/desktop/releases/tag/v4.61.0 ↗
- WEB https://github.com/docker/model-runner/commit/0699420a ↗
- WEB https://github.com/docker/model-runner/commit/41dd3f13 ↗
- WEB https://github.com/docker/model-runner/commit/9acf1ed9 ↗
- WEB https://github.com/docker/model-runner/commit/78504107 ↗
- WEB https://github.com/docker/model-runner/commit/98038869 ↗
Credibility Gate Breakdown
- • Quote matched article text but does not mention package 'docker-model-runner'.
- • Capped specificity below AUTO threshold due to weak quote grounding (missing package or version tokens inside quote).
- • Unrecognized version specifier expression: 'Seatbelt profile modified by commit 98038869'
- • Capped specificity below AUTO threshold because version constraints lack a bounded or exact fix range.
- • Quote matched article text but does not contain any claimed version token (4.31.0).
- • Unrecognized version specifier expression: 'Docker Desktop versions prior to 4.31.0'
$ curl -sL https://zerobom.dev/osv/triage/PRECVE-2026-9806D4A6.json -o PRECVE-2026-9806D4A6.json && zerobom scan --osv PRECVE-2026-9806D4A6.json --sbom sbom.cdx.json