ZeroHour
GBHackerspublished ()ingested Divya

Docker Sandboxes Vulnerabilities Let Malicious Guests Escape Workspace and Access Host Files

AI summary · glm-5.3-flash

Docker fixed two symlink-race flaws in Docker Sandboxes, CVE-2026-77179 and CVE-2026-79994, letting malicious guests escape the workspace and read host files; fixed in 0.42.0.

Docker patched CVE-2026-77179 (Critical) and CVE-2026-79994 (High) in Docker Sandboxes 0.42.0, released September 7. Both are time-of-check-to-time-of-use symlink races: CVE-2026-77179 in the macOS virtio-fs host server (versions 0.28.0 to before 0.42.0) can allow a malicious guest to read or modify arbitrary host files and potentially achieve code execution, while CVE-2026-79994 in the guest-to-host Unix socket relay (0.37.0 to before 0.42.0) can redirect host connections to arbitrary AF_UNIX sockets. Docker recommends upgrading and, as interim mitigation, using clone mode and avoiding read-write host mounts.

  • CVE-2026-77179 (Critical): macOS virtio-fs symlink race enables workspace escape, arbitrary host file read/write, possible code execution
  • CVE-2026-79994 (High): Unix socket relay symlink race redirects host connections to arbitrary AF_UNIX sockets
  • Both fixed in Docker Sandboxes 0.42.0; interim mitigations include clone mode and avoiding read-write host mounts
  • Flaws heighten risk in AI-agent workflows where sandboxes run untrusted code and dependencies

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2026-17106
Path Traversal via Link Following in Moby go-archive Tar Extraction

The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) fail to confine filesystem operations to the destination directory: entry placement is decided with lexical string checks, but the actual filesystem operations follow OS-resolved paths, so links shipped inside an archive can escape the extraction target. An attacker who controls the contents of an archive being extracted — for example a malicious image layer or a supplied tar handled by Moby-based tooling — can create or overwrite files at arbitrary paths writable by the extracting process. The CVSS 4.0 vector (AV:L, AT:P, UI:A) indicates exploitation requires local access to the extraction context plus certain preconditions, rather than remote unauthenticated access. Anyone running software that embeds the vulnerable moby/go-archive routines, notably Moby/Docker-based container engines that apply image layers or unpack untrusted archives, is potentially affected. There is no evidence of exploitation so far: no public proof-of-concept, not listed in CISA KEV, and EPSS puts 30-day exploitation probability at 0.3%.

Do: Upgrade affected Moby/Docker components to the vendor-patched release once Docker's advisory specifies fixed versions, and if you consume moby/go-archive as a Go module, bump it to the fixed version and rebuild. Until patched, avoid extracting untrusted tar archives (docker load, layers from untrusted registries, automated tar unpacking jobs) on hosts where the extracting process holds write access to sensitive paths, and run extraction under least-privilege accounts. Review CI/CD pipelines and cron jobs that unpack user-supplied archives into privileged locations, as these are the most likely attack paths.

7.1<1%
  • Docker / Moby project moby/go-archive (tar extraction routines: Unpack, UnpackLayer, Untar/UntarUncompressed, ApplyLayer helpers)
massmillions of Moby-based Docker Engine/Docker Desktop hosts plausibly affected, though only those extracting attacker-controlled archives or image layers are…
CVE-2026-2664
An out of bounds read vulnerability in the grpcfuse kernel module present in the Linux VM in Docker Desktop for Windows, Linux and macOS up to version 4.61.0 co

An out of bounds read vulnerability in the grpcfuse kernel module present in the Linux VM in Docker Desktop for Windows, Linux and macOS up to version 4.61.0 could allow a local attacker to cause an unspecified impact by writing to /proc/docker entries. The issue has been fixed in Docker Desktop 4.62.0 .

NVD description · AI analysis pending
6.8<1%
  • docker desktop
CVE-2026-28400
Docker Model Runner (DMR) is software used to manage, run, and deploy AI models using Docker.

Docker Model Runner (DMR) is software used to manage, run, and deploy AI models using Docker. Versions prior to 1.0.16 expose a POST `/engines/_configure` endpoint that accepts arbitrary runtime flags without authentication. These flags are passed directly to the underlying inference server (llama.cpp). By injecting the --log-file flag, an attacker with network access to the Model Runner API can write or overwrite arbitrary files accessible to the Model Runner process. When bundled with Docker Desktop (where Model Runner is enabled by default since version 4.46.0), it is reachable from any default container at model-runner.docker.internal without authentication. In this context, the file overwrite can target the Docker Desktop VM disk (`Docker.raw` ), resulting in the destruction of all containers, images, volumes, and build history. However, in specific configurations and with user interaction, it is possible to convert this vulnerability in a container escape. The issue is fixed in Docker Model Runner 1.0.16. Docker Desktop users should update to 4.61.0 or later, which includes the fixed Model Runner. A workaround is available. For Docker Desktop users, enabling Enhanced Container Isolation (ECI) blocks container access to Model Runner, preventing exploitation. However, if the Docker Model Runner is exposed to localhost over TCP in specific configurations, the vulnerability is still exploitable.

NVD description · AI analysis pending
7.5<1%
CVE-2026-33990
Docker Model Runner (DMR) is software used to manage, run, and deploy AI models using Docker.

Docker Model Runner (DMR) is software used to manage, run, and deploy AI models using Docker. Prior to version 1.1.25, Docker Model Runner contains an SSRF vulnerability in its OCI registry token exchange flow. When pulling a model, Model Runner follows the realm URL from the registry's WWW-Authenticate header without validating the scheme, hostname, or IP range. A malicious OCI registry can set the realm to an internal URL (e.g., http://127.0.0.1:3000/), causing Model Runner running on the host to make arbitrary GET requests to internal services and reflect the full response body back to the caller. Additionally, the token exchange mechanism can relay data from internal services back to the attacker-controlled registry via the Authorization: Bearer header. This issue has been patched in version 1.1.25. For Docker Desktop users, enabling Enhanced Container Isolation (ECI) blocks container access to Model Runner, preventing exploitation. However, if the Docker Model Runner is exposed to localhost over TCP in specific configurations, the vulnerability is still exploitable.

NVD description · AI analysis pending
6.8<1%
  • docker model runner
CVE-2026-5817
+1 in the same advisory: …5843
The vllm-metal inference backend in Docker Model Runner on macOS unconditionally sets trust_remote_code=True when loading model tokenizers, and runs without san

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.

NVD description · AI analysis pending
8.8<1%
  • docker docker desktop
CVE-2026-77179
Symlink Escape in Docker Sandboxes virtio-fs Exposes macOS Host Files

A symlink-resolution flaw (CWE-59) in the virtio-fs host server used by Docker Sandboxes on macOS allows a malicious guest VM to break out of its shared workspace. The bug occurs when the host server reopens an unlinked file from a stored path: the guest can replace a parent directory with a symlink so the reopen resolves outside the intended share. A successful exploit lets the guest read or modify arbitrary files on the macOS host as the VMM user, with potential host code execution, reflected in a CVSS 4.0 score of 9.4 (critical). This affects users running Docker's Sandboxes feature on macOS hosts, particularly where the sandbox is used to execute untrusted or AI-generated code. No public proof of concept is known and the flaw is not listed in CISA's KEV, so exploitation status is none known.

Do: Update Docker Desktop on macOS to the latest release, which contains Docker's fix for the virtio-fs symlink handling, as soon as it is available to you. Until patched, disable the Sandboxes feature on macOS hosts and avoid executing untrusted or AI-generated code inside it. If the feature has been used with untrusted code, review the host for unexpected file modifications or processes running as the VMM user.

9.4
  • Docker Sandboxes (virtio-fs host server on macOS, part of Docker Desktop)
moderate≈tens of thousands of macOS Docker Desktop users (opt-in Sandboxes feature)
CVE-2026-79994
TOCTOU Symlink Race in Docker Sandboxes Socket Relay Exposes Host Sockets

Docker Sandboxes contains a time-of-check/time-of-use race condition (CWE-367) in the guest-to-host Unix-domain socket relay: a socket path is validated to sit inside the authorized workspace, but the host later reconnects by re-resolving that same pathname. A malicious guest can swap an intermediate directory in the path for a symlink during the window between validation and connection, tricking the host into connecting to an arbitrary AF_UNIX socket outside the shared workspace. Successful exploitation lets the guest read data from, or invoke capabilities exposed by, the targeted host-side socket, with high confidentiality and integrity impact on both the vulnerable component and subsequent systems per the CVSS 4.0 vector (8.7, local attack vector, no privileges or user interaction required). Any developer or environment using Docker Sandboxes to run semi-trusted or untrusted code is affected, since the attacker must already control code inside a sandbox. No public proof of concept exists, the flaw is not on the CISA KEV list, and no exploitation in the wild is known.

Do: Apply the vendor fix as soon as Docker publishes patched builds, and check Docker's security advisory (assigned by [email protected]) for the exact fixed version of Docker Sandboxes/Docker Desktop. Until patched, treat Sandboxes as isolation-best-effort only: do not run untrusted code, and audit which host AF_UNIX sockets are reachable through the relay, since those become the blast radius of a successful race. Monitor guest workspaces for processes rapidly creating or renaming directories along shared socket paths, which is characteristic of exploitation attempts.

8.7
  • Docker Sandboxes (guest-to-host Unix-domain socket relay)
large≈100,000–1,000,000 developers (subset of Docker's roughly 20 million monthly active developers who use the opt-in Sandboxes feature)
Full article725 words · extracted from gbhackers.com · click to collapse

Docker has released security fixes for two serious vulnerabilities in Docker Sandboxes that could let a malicious guest environment bypass workspace isolation and access sensitive resources on the host.

These flaws, identified as CVE-2026-77179 and CVE-2026-79994, were addressed in Docker Sandboxes version 0.42.0, which was released on September 7.

Docker Sandboxes isolate development agents and workloads while selectively sharing a host workspace. Both vulnerabilities arise from improper handling of pathnames after an authorization decision: a compromised sandbox could exploit symbolic links to alter a directory path between the validation and subsequent host-side access.

Docker Sandboxes Vulnerabilities

CVE-2026-77179 is rated Critical and affects Docker Sandboxes versions 0.28.0 through versions before 0.42.0 on macOS. This issue exists in the macOS virtio-fs host server, which incorrectly follows symbolic links when reopening an unlinked file that is based on a previously stored path.

A malicious process inside a guest sandbox could replace a parent directory with a symbolic link after the original path has been approved.

This race condition could redirect a subsequent host-side file operation outside the authorized shared workspace. According to Docker, a successful exploit could allow a malicious guest to read or modify arbitrary host files accessible to the virtual machine monitor (VMM) user. This access could potentially lead to host code execution.

The flaw is particularly significant in developer and AI-agent workflows, where sandboxes often handle untrusted repositories, generated code, third-party tools, or software dependencies.

A sandbox’s effectiveness relies on restricting all subsequent filesystem operations to the originally authorized directory object, rather than re-evaluating an attacker-modified pathname.

CVE-2026-79994, rated High, affects Docker Sandboxes versions 0.37.0 through versions before 0.42.0 across affected deployments. This vulnerability pertains to the guest-to-host Unix domain socket relay.

While Docker Sandboxes originally verified that a requested socket path was within an approved workspace, it subsequently established the connection using the original path string. An attacker could exploit the gap between these two operations by replacing an intermediate directory with a symbolic link.

This could lead the host to connect to an arbitrary AF_UNIX socket located outside the shared workspace. Depending on the service linked to the targeted socket, the consequences could include data disclosure or unintended access to host-side functions that are exposed through that socket.

Unlike conventional network service exposures, Unix sockets often provide local inter-process communication (IPC) interfaces for privileged applications, development tools, or platform services. This vulnerability underscores the risks of treating pathname validation as a one-time security control, especially when the path can be altered before use.

CVE Details

CVEProduct / ComponentSeverityAffected VersionsSecurity ImpactFixed Version
CVE-2026-77179Docker Sandboxes virtio-fs host server on macOSCritical0.28.0 to before 0.42.0Symlink race enables workspace escape and arbitrary VMM-user file read/write; may lead to host code execution0.42.0
CVE-2026-79994Docker Sandboxes guest-to-host Unix socket relayHigh0.37.0 to before 0.42.0Symlink race can redirect a host connection to an unauthorized AF_UNIX socket0.42.0
CVE-2026-17106Docker Desktop docker container cpNot statedDocker Desktop versions before 4.86.0Destination-escape flaw4.86.0
CVE-2026-5843Docker Model Runner MLX backendNot statedDocker Desktop versions before 4.71.0Container-to-host code execution4.71.0
CVE-2026-5817Docker Model Runner vllm-metal backendNot statedDocker Desktop versions before 4.68.0Container-to-host code execution4.68.0
CVE-2026-33990Docker Model Runner OCI Registry ClientNot statedDocker Desktop versions before 4.67.0Server-side request forgery4.67.0
CVE-2026-28400Docker Model RunnerNot statedDocker Desktop versions before 4.62.0Runtime flag injection4.62.0
CVE-2026-2664gRPC-FUSE kernel moduleNot statedDocker Desktop versions before 4.62.0Out-of-bounds read4.62.0

Organizations should upgrade Docker Sandboxes to version 0.42.0 or later immediately. Docker’s subsequently released 0.43.0 also contains additional security hardening and workspace-related improvements.

Where an immediate upgrade is not possible, Docker recommends using clone mode and avoiding read-write host mounts. Clone mode reduces direct exposure of the host workspace, while removing writable mounts limits the damage that could result if a malicious guest achieves path redirection.

Security teams should also treat sandboxes executing untrusted code as potentially hostile, minimize host-mounted directories, avoid placing credentials or sensitive repositories in shared paths, and monitor Docker Sandboxes version deployment across macOS developer endpoints.

Cut every SOC alert investigation by 21 min. Power your SOC with instant IOC context for immediate response: Integrate TI Lookup in your SOC

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Text extracted automatically; images, tables and formatting may be missing. Original: https://gbhackers.com/docker-sandboxes-vulnerabilities/