Docker Desktop
Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends
The vllm-metal inference backend in Docker Model Runner on macOS unconditionally sets trust_remote_code=True when loading model tokenizers, and runs without sandboxing. This causes transformers.AutoTokenizer.from_pretrained() to import and execute arbitrary Python files included in any model pulled from an OCI registry, resulting in arbitrary code execution on the Docker host as the Docker Desktop user when inference is triggered. Any container on the Docker network can trigger this by calling the model-runner.docker.internal API to pull a malicious model and request inference.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.62.0, < 4.68.0
Fixed in 4.68.0
Mitigation
Upgrade Docker Desktop to 4.68.0 or later.
Workaround
Disable Docker Model Runner or only run trusted containers on Docker Desktop instances where Model Runner is enabled.
References
- Release notes docs.docker.com/desktop/release-notes
Timeline
Days relative to CVE publicationFirst public PoC 2.3 days before publication; not in CISA KEV. First PoC: davidrxchester/CVE-2026-5817 (created 20 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| davidrxchester/CVE-2026-5817 | 20 May 2026 −2.3 d | 0 | PoC |
| gouldnicholas/CVE-2026-5817-PoC | 22 May 2026 −3 h | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /api/pull
- Body markers
"name":"host.docker.internal:5555/evil/model:latest""name":"your.registry/evil/model:latest"inapplication/json- Seen in
- 2 repos: davidrxchester/CVE-2026-5817, gouldnicholas/CVE-2026-5817-PoC
- Evidence
- davidrxchester/CVE-2026-5817/poc_cve_2026_5817.py:11 gouldnicholas/CVE-2026-5817-PoC/README.md:23 gouldnicholas/CVE-2026-5817-PoC/rce_registry.py:405
POST /engines/v1/chat/completions
- Body markers
"model":"host.docker.internal:5555/evil/model:latest""messages""role":"user""content":"hi""model":"your.registry/evil/model:latest"inapplication/json- Seen in
- 2 repos: davidrxchester/CVE-2026-5817, gouldnicholas/CVE-2026-5817-PoC
- Evidence
- davidrxchester/CVE-2026-5817/poc_cve_2026_5817.py:14 gouldnicholas/CVE-2026-5817-PoC/README.md:31 gouldnicholas/CVE-2026-5817-PoC/rce_registry.py:409
GET /_poc/selftest
- Seen in
- 1 repo: gouldnicholas/CVE-2026-5817-PoC
- Evidence
- gouldnicholas/CVE-2026-5817-PoC/run_poc.sh:147
GET /api/tags
- Seen in
- 1 repo: gouldnicholas/CVE-2026-5817-PoC
- Evidence
- gouldnicholas/CVE-2026-5817-PoC/README.md:15
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/pull(?:[?#].*)?$
(?i)^/engines/v1/chat/completions(?:[?#].*)?$
(?i)^/_poc/selftest(?:[?#].*)?$
(?i)^/api/tags(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5817 Docker Docker Desktop exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/pull"; http.request_body; content:"|22|name|22|:|22|host.docker.internal:5555/evil/model:latest|22|"; http.request_body; content:"|22|name|22|:|22|your.registry/evil/model:latest|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-5817; classtype:web-application-attack; sid:9832359; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5817 Docker Docker Desktop exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/engines/v1/chat/completions"; http.request_body; content:"|22|model|22|:|22|host.docker.internal:5555/evil/model:latest|22|"; http.request_body; content:"|22|messages|22|"; http.request_body; content:"|22|role|22|:|22|user|22|"; http.request_body; content:"|22|content|22|:|22|hi|22|"; http.request_body; content:"|22|model|22|:|22|your.registry/evil/model:latest|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-5817; classtype:web-application-attack; sid:9304387; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5817 Docker Docker Desktop exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/_poc/selftest"; reference:url,poc.griffinguard.io/cve/CVE-2026-5817; classtype:web-application-attack; sid:9847637; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-5817 Docker Docker Desktop exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/tags"; reference:url,poc.griffinguard.io/cve/CVE-2026-5817; classtype:web-application-attack; sid:9845003; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Docker Docker Desktop exploit attempt (CVE-2026-5817)
id: gg-pocmon-cve-2026-5817-9832359
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5817. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5817
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/pull'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5817
title: Docker Docker Desktop exploit attempt (CVE-2026-5817)
id: gg-pocmon-cve-2026-5817-9304387
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5817. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5817
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/engines/v1/chat/completions'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5817
title: Docker Docker Desktop exploit attempt (CVE-2026-5817)
id: gg-pocmon-cve-2026-5817-9847637
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5817. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5817
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/_poc/selftest'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5817
title: Docker Docker Desktop exploit attempt (CVE-2026-5817)
id: gg-pocmon-cve-2026-5817-9845003
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-5817. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-5817
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/tags'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.5817