A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5817

CVE-2026-5817: Docker Model Runner vllm-metal RCE Flaw

CVE-2026-5817 is a remote code execution vulnerability in Docker Model Runner's vllm-metal backend on macOS. The flaw allows arbitrary code execution when malicious models are loaded. This article covers technical details, impact, and mitigation.

Published: May 28, 2026

CVE-2026-5817 Overview

CVE-2026-5817 affects the vllm-metal inference backend in Docker Model Runner on macOS. The backend unconditionally sets trust_remote_code=True when loading model tokenizers and runs without sandboxing. This configuration causes transformers.AutoTokenizer.from_pretrained() to import and execute arbitrary Python files bundled inside any model pulled from an Open Container Initiative (OCI) registry. Triggering inference on a malicious model results in arbitrary code execution on the Docker host under the Docker Desktop user account. Any container on the Docker network can invoke the model-runner.docker.internal API to pull a hostile model and request inference, exposing the host to lateral compromise from untrusted workloads.

Critical Impact

Any container on the Docker network can achieve arbitrary code execution on the macOS host as the Docker Desktop user by requesting inference on a malicious OCI model.

Affected Products

  • Docker Desktop for macOS — Docker Model Runner with the vllm-metal inference backend
  • Hosts running containers with access to model-runner.docker.internal
  • Workflows that pull models from untrusted OCI registries

Discovery Timeline

  • 2026-05-22 - CVE-2026-5817 published to the National Vulnerability Database (NVD)
  • 2026-05-22 - Last updated in NVD database

Technical Details for CVE-2026-5817

Vulnerability Analysis

The vllm-metal backend loads tokenizers through the Hugging Face transformers library. It calls AutoTokenizer.from_pretrained() with trust_remote_code=True hardcoded. That parameter instructs transformers to import Python modules shipped alongside the model files. Any *.py file referenced by the tokenizer or model configuration executes inside the Docker Model Runner process. Because the backend also runs without an enforcing sandbox, code executes with the privileges of the Docker Desktop user on the host. The flaw maps to CWE-829 (Inclusion of Functionality from Untrusted Control Sphere).

Root Cause

The backend hardcodes trust_remote_code=True instead of gating the option behind explicit operator consent or registry allow-listing. Docker Model Runner treats every OCI model as trusted input, even when pulled on demand by an untrusted container. The absence of sandboxing around the inference worker removes the second layer of defense that would otherwise contain code embedded in a model package.

Attack Vector

The attack requires local network reachability to the Docker Model Runner API. A malicious container on the Docker network calls model-runner.docker.internal to pull a crafted model from an attacker-controlled OCI registry. The model package includes Python files that execute during tokenizer initialization. When the attacker then triggers inference, the hostile code runs on the macOS host as the Docker Desktop user. The attacker gains access to user files, credentials, SSH keys, and any Docker socket the user can reach. Refer to the Docker Release Notes #4680 for vendor-supplied technical context.

Detection Methods for CVE-2026-5817

Indicators of Compromise

  • Unexpected outbound pulls from the Docker Model Runner process to unknown OCI registries
  • New Python child processes spawned by Docker Model Runner outside of expected model directories
  • Modifications to user-owned files (~/.ssh, ~/.aws, keychain access) following a model pull
  • API calls from containers to model-runner.docker.internal referencing unfamiliar model identifiers

Detection Strategies

  • Inspect process telemetry on macOS for Python interpreters launched by Docker Model Runner with arguments pointing to model cache directories.
  • Correlate OCI registry pull events with subsequent file system writes or network egress from the Docker Desktop user context.
  • Alert on container-originated HTTP requests to model-runner.docker.internal/v1/models that reference registries outside an approved list.

Monitoring Recommendations

  • Log all Docker Model Runner API calls, including the requesting container, model reference, and inference endpoint.
  • Capture process lineage for Docker Desktop helper processes and forward to a centralized analytics platform.
  • Monitor egress from the macOS host for connections to unfamiliar container registries.

How to Mitigate CVE-2026-5817

Immediate Actions Required

  • Upgrade Docker Desktop for macOS to the release referenced in Docker Release Notes #4680.
  • Disable Docker Model Runner on hosts that do not require local inference until patched.
  • Restrict which containers can reach model-runner.docker.internal by tightening Docker network policies.
  • Audit recently pulled models and remove any sourced from untrusted registries.

Patch Information

Docker addressed the issue in the Docker Desktop release documented in the Docker Release Notes #4680. The fix removes the unconditional trust_remote_code=True setting in the vllm-metal backend. Apply the update on all macOS developer workstations that run Docker Desktop.

Workarounds

  • Block container access to the Docker Model Runner API by placing sensitive workloads on isolated user-defined networks.
  • Pull models only from internal, signed OCI registries and verify model contents before use.
  • Run Docker Desktop under a dedicated, low-privilege macOS account that lacks access to developer secrets.
bash
# Configuration example: restrict container access to the Model Runner API
# Run untrusted workloads on an isolated network with no access to host-internal DNS
docker network create --driver bridge --internal isolated-net
docker run --rm --network isolated-net untrusted/image:latest

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDocker

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-829
  • Technical References
  • Docker Release Notes #4680
  • Related CVEs
  • CVE-2026-5843: Docker Model Runner MLX RCE Vulnerability

  • CVE-2026-5741: Docker-MCP-Server RCE Vulnerability

  • CVE-2025-64443: Docker MCP Gateway RCE Vulnerability

  • CVE-2023-0628: Docker Desktop RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English