CVE-2026-5817

HIGH LAB

Docker Model Runner container-to-host code execution via unsandboxed trust_remote_code in Python inference backends

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-5817. PoCs published by gouldnicholas.

AI-analyzed exploit summary This repository contains a functional proof-of-concept exploit for CVE-2026-5817, demonstrating a remote code execution (RCE) vulnerability in Docker Model Runner. The exploit leverages a malicious OCI registry to serve a crafted model with an embedded Python payload, exploiting the lack of digest verification and the default trust_remote_code behavior in Python backends.

Description

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.

Exploits (1)

github WORKING POC
by gouldnicholas · pythonpoc
https://github.com/gouldnicholas/CVE-2026-5817-PoC

This repository contains a functional proof-of-concept exploit for CVE-2026-5817, demonstrating a remote code execution (RCE) vulnerability in Docker Model Runner. The exploit leverages a malicious OCI registry to serve a crafted model with an embedded Python payload, exploiting the lack of digest verification and the default trust_remote_code behavior in Python backends.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Docker Model Runner
No auth needed
Prerequisites: Docker Model Runner running with Python backends (e.g., vLLM, MLX, sglang) · Network access to the target's registry pull endpoint
devstral-2 · analyzed May 23, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v3 8.2
EPSS 0.0002
EPSS Percentile 5.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Lab Environment

COMMUNITY
Community Lab
docker pull curlimages/curl:latest

Details

CWE
CWE-829
Status published
Products (2)
Docker/Docker Desktop 4.62.0 - 4.68.0
docker/docker_desktop 4.62.0 - 4.68.0
Published May 22, 2026
Tracked Since May 23, 2026