Docker Model Runner argument injection (CVE-2026-28400) enabled file overwrite and container escape
An unauthenticated argument-injection flaw in Docker Model Runner allowed arbitrary file writes and, in some configurations, host code execution.
Reported by Zero Day Initiative
First reported Summary updated
- Public PoC
- Not known
- Exploited
- Not known
- CVSS
- 7.5 High
What happened
Docker Model Runner exposed an unauthenticated POST /engines/_configure endpoint that accepted arbitrary runtime flags and passed them to llama.cpp.NVD
By injecting the --log-file flag, an attacker with network access to the Model Runner API could write or overwrite arbitrary files accessible to the Model Runner process.NVD
When bundled with Docker Desktop, the API was reachable from any default container at model-runner.docker.internal without authentication.NVD
In that context, the file overwrite could target the Docker Desktop VM disk Docker.raw, destroying all containers, images, volumes and build history.NVD
Further analysis under non-default configurations turned the same primitive into arbitrary code execution on the host on both macOS and Windows.1
Who is affected
- Docker Model Runner (DMR), prior to 1.0.16NVD
- Docker Desktop, Model Runner enabled by default since version 4.46.0NVD
Is there a public exploit?
Not known None of the sources mentions public exploit code yet.
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
What to do
- Update Docker Model Runner to 1.0.16.NVD
- Docker Desktop users should update to 4.61.0 or later, which includes the fixed Model Runner.NVD
- Enabling Enhanced Container Isolation blocks container access to Model Runner, but if Model Runner is exposed to localhost over TCP in specific configurations the vulnerability is still exploitable.NVD
For bug hunters
The underlying bug class is argument injection: user-controlled values are appended to a command line without validation, so flags meant for the invoked program can be smuggled in. Look for endpoints that accept runtime or configuration flags and pass them to subprocesses, especially local model servers, build tools and media converters. Test whether unauthenticated or low-privilege callers can reach such endpoints and whether flags like output or log file options change where data is written. Check for file-write primitives that can be redirected to sensitive paths.
What to test
- Send crafted runtime flag values to configuration endpoints and observe subprocess arguments.
- Try injecting output or log file flags to write to a path you control.
- Check whether the service is reachable from containers or other low-trust networks without authentication.
- Look for command-line construction that appends user input without an allowlist.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
Zero Day Initiative
Hostile Inference: Exploiting Docker Model Runner for Container Escapes“Local LLM inference is seeing adoption in default developer workflows, and the tooling that serves those models now ships inside products developers already trust.”