← Voltar ao feed
medium

Docker Model Runner argument injection (CVE-2026-28400) chains to container-to-host code execution on Docker Desktop macOS and Windows

1 fonte(s) · 1 atualização(ões) · publicado 18/11/2026 14:23 · coletado há 2 semanas

ZDI researcher Nitesh Surana detailed a chain in Docker Model Runner (DMR), part of Docker Desktop. An unauthenticated _configure REST API lets a default-privilege container inject arbitrary arguments into the host-side llama-server. This was reported as ZDI-26-150 / CVE-2026-28400, rated as a denial of service on macOS because the Docker.raw data disk can be overwritten. Under non-default conditions, the same primitive gives arbitrary code execution on the host on macOS and Windows. The chain needs a Docker Extension to be installed, a malicious or compromised container, and the user opening the extension UI. Docker fixed the flaw in DMR v1.0.16 and Docker Desktop 4.61.0 and later.

Entenda a falha

A vulnerabilidade

CVE-2026-28400 (ZDI-26-150) is an argument injection in Docker Model Runner (DMR), part of Docker Desktop. The unauthenticated _configure REST API, reachable from any container at model-runner.docker.internal, lets a default-privilege container add arbitrary arguments to the host-side llama-server. On macOS ZDI rates it as a denial of service, because the Docker.raw data disk can be overwritten. Under non-default conditions it becomes arbitrary code execution on the host (macOS and Windows), but that needs a Docker Extension installed, a malicious or compromised container, and the user opening the extension UI. Fixed in DMR v1.0.16 and Docker Desktop 4.61.0 and later. The same research also covers ZDI-26-451 (macOS Seatbelt escape) and ZDI-26-258 (WSL2 VM-to-host pivot, which Docker considers outside its threat model).

Como funciona

A container sends a request to /engines/_configure (or /engines/llama.cpp/_configure) with runtime-flags or raw-runtime-flags. The scheduler's Configure method stores them per model and mode. When a later chat-completions request loads that model and no runner is alive, the scheduler spawns llama-server and GetArgs builds its command line, appending the stored flags as-is after the built-in ones. The process runs on the host inside a sandbox (Seatbelt on macOS, Job Objects on Windows). File-touching flags such as --grammar-file, --chat-template-file and --log-file then give host file read and write. The write can replace an installed extension's index.html, and when the user opens the extension its code runs on the host as the Docker Desktop user.

Por que é vulnerável

The _configure API is unauthenticated and the caller-supplied flags were passed straight to llama-server's command line without validation. Docker's fix came in three stages: first it removed the runtime flags, then it reintroduced them with path-safety validation, and finally it added a per-backend allowlist. Impact on Windows is wider because Job Objects impose no filesystem limits, so access is bounded only by the user's permissions. On macOS the Seatbelt profile limits access to the Docker Data tree.

Onde está

The public docker/model-runner repository: the ConfigureRequest struct and the scheduler's Configure method, run() in pkg/scheduling/runner.go, and GetArgs. Fix commits are 0699420a (#482), 41dd3f13 (#518), 9acf1ed9 (#601) and hardening commit 78504107 (#667); commit 98038869 covers ZDI-26-451.

Como foi descoberta

ZDI researcher Nitesh Surana found the issue while checking whether a stock container with no extra privileges could compromise the host through DMR. ZDI reported ZDI-26-150 / CVE-2026-28400 in November 2025. Docker's fix commits date from December 2025 to February 2026. ZDI published the full chain write-up in November 2026, also covering the Seatbelt and WSL2 escapes found along the way.

Explicação gerada por IA a partir da matéria e dos artigos, em 18/11/2026 16:17.

Detalhes técnicos

  • The --grammar-file and --chat-template-file flags give host file read. --log-file gives host file write.
  • On macOS, the Seatbelt profile limits access to the Docker Data tree. On Windows, Job Objects impose no filesystem limits, so access is bounded only by the user's permissions.
  • On Windows, the Docker Desktop username is leaked through UNC paths (SMB) or through llama-server error logs.
  • Log content is controlled through GGUF metadata such as general.name, through --verbose, or through --override-kv.
  • The write overwrites an installed extension's index.html with a JS payload. When the user opens the extension, ddClient.docker.cli.exec and ddClient.extension.host.cli.exec run code on the host as the Docker Desktop user.
  • ZDI-26-451 is a macOS Seatbelt sandbox escape. The profile does not deny the launchservicesd Mach service, so a replaced llama-server script can call open and spawn unsandboxed apps. TCC and Gatekeeper still apply.
  • ZDI-26-258 is a WSL2 VM-to-host pivot. From the VM, /run/host-services/backend.sock /app/settings can flip onlyMarketPlaceExtensions. Docker said this is outside its threat model because it requires a prior container-to-VM escape.

Detalhes da correção

  • Fix for ZDI-26-150 in three stages: 0699420a (#482, 2025-12-05) removed runtime flags. 41dd3f13 (#518, 2025-12-16) reintroduced them with path-safety validation. 9acf1ed9 (#601, 2026-02-09) added a per-backend allowlist.
  • All three shipped in DMR v1.0.16, with hardening commit 78504107 (#667).
  • Commit 98038869 denies the LaunchServices Mach lookups for ZDI-26-451.

Remediação

  • Update Docker Desktop to 4.61.0 or later.
  • Restrict extensions to the Marketplace and avoid running untrusted containers.

Linha do tempo

  1. thezdi.com ↗ · pub. 18/11/2026 14:23 · coletado 18/11 16:01 primeiro registro

    Docker Model Runner argument injection (CVE-2026-28400) chains to container-to-host code execution on Docker Desktop macOS and Windows

    ler a análise desta fonte

    ZDI researcher Nitesh Surana detailed a chain in Docker Model Runner (DMR), part of Docker Desktop. An unauthenticated _configure REST API lets a default-privilege container inject arbitrary arguments into the host-side llama-server. This was reported as ZDI-26-150 / CVE-2026-28400, rated as a denial of service on macOS because the Docker.raw data disk can be overwritten. Under non-default conditions, the same primitive gives arbitrary code execution on the host on macOS and Windows. The chain needs a Docker Extension to be installed, a malicious or compromised container, and the user opening the extension UI. Docker fixed the flaw in DMR v1.0.16 and Docker Desktop 4.61.0 and later.

    Technical Details

    • The --grammar-file and --chat-template-file flags give host file read. --log-file gives host file write.
    • On macOS, the Seatbelt profile limits access to the Docker Data tree. On Windows, Job Objects impose no filesystem limits, so access is bounded only by the user's permissions.
    • On Windows, the Docker Desktop username is leaked through UNC paths (SMB) or through llama-server error logs.
    • Log content is controlled through GGUF metadata such as general.name, through --verbose, or through --override-kv.
    • The write overwrites an installed extension's index.html with a JS payload. When the user opens the extension, ddClient.docker.cli.exec and ddClient.extension.host.cli.exec run code on the host as the Docker Desktop user.
    • ZDI-26-451 is a macOS Seatbelt sandbox escape. The profile does not deny the launchservicesd Mach service, so a replaced llama-server script can call open and spawn unsandboxed apps. TCC and Gatekeeper still apply.
    • ZDI-26-258 is a WSL2 VM-to-host pivot. From the VM, /run/host-services/backend.sock /app/settings can flip onlyMarketPlaceExtensions. Docker said this is outside its threat model because it requires a prior container-to-VM escape.

    Fix Details

    • Fix for ZDI-26-150 in three stages: 0699420a (#482, 2025-12-05) removed runtime flags. 41dd3f13 (#518, 2025-12-16) reintroduced them with path-safety validation. 9acf1ed9 (#601, 2026-02-09) added a per-backend allowlist.
    • All three shipped in DMR v1.0.16, with hardening commit 78504107 (#667).
    • Commit 98038869 denies the LaunchServices Mach lookups for ZDI-26-451.

    Remediation

    • Update Docker Desktop to 4.61.0 or later.
    • Restrict extensions to the Marketplace and avoid running untrusted containers.