PoC Monitor
← All CVEs
CVE-2026-5817published 22 May 2026 19:24 UTCData: JSON · API

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.

First public PoC 2.3 days beforebefore publication · 20 May 2026
Public PoCs22 on GitHub
CVSS8.8high · scored by CNA · CWE-829
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Docker Docker Desktop
  • >= 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

Timeline

Days relative to CVE publication
-4-2t=0+2+4+6+8First public PoC20 May 2026 · t−2.3dCVE published22 May 2026 · t = 0

First 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
RepositoryCreatedStarsAssessment
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 repos

POST /api/pull

Body markers
"name":"host.docker.internal:5555/evil/model:latest" "name":"your.registry/evil/model:latest" in application/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" in application/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

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /api/pull
(?i)^/api/pull(?:[?#].*)?$
POST /engines/v1/chat/completions
(?i)^/engines/v1/chat/completions(?:[?#].*)?$
GET /_poc/selftest
(?i)^/_poc/selftest(?:[?#].*)?$
GET /api/tags
(?i)^/api/tags(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /api/pull
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;)
POST /engines/v1/chat/completions
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;)
GET /_poc/selftest
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;)
GET /api/tags
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.

POST /api/pull
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
POST /engines/v1/chat/completions
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
GET /_poc/selftest
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
GET /api/tags
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