Critical Docker Sandbox Vulnerabilities Enable Malicious Guests to Escape Isolated microVM Workspaces
Docker patched two sandbox-escape flaws, CVE-2026-77179 and CVE-2026-79994, letting malicious guest workloads access host files and sockets.
Docker fixed CVE-2026-77179 (Critical), a virtio-fs symlink race in Docker Sandboxes 0.28.0 through before 0.42.0 on macOS that could let a guest read or modify arbitrary host files and potentially reach code execution, and CVE-2026-79994 (High), a time-of-check-to-time-of-use flaw in the guest-to-host Unix socket relay affecting 0.37.0 through before 0.42.0. Fixes shipped in Docker Sandboxes 0.42.0, released September 7; Docker recommends clone mode and avoiding read-write host mounts as interim mitigations. The article also references the earlier destination-escape flaw CVE-2026-17106 in docker cp, fixed in Docker Desktop 4.86.0. No exploitation is reported.
- Both flaws involve unsafe filesystem path and symlink handling
- CVE-2026-77179 could enable arbitrary host file access and possible code execution
- Docker Sandboxes run untrusted code and AI-agent workloads in microVMs
- Fixed in version 0.42.0; clone mode recommended where upgrade is delayed
Vulnerabilities mentionedAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| 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% |
| massmillions of Moby-based Docker Engine/Docker Desktop hosts plausibly affected, though only those extracting attacker-controlled archives or image layers are… | ||
| 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 | — |
| 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 | — |
| 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 article485 words · extracted from cybersecuritynews.com · click to collapse
Docker patched two serious vulnerabilities in Docker Sandboxes that could let a malicious guest workload break out of its intended shared workspace and access sensitive host-side resources.
The flaws, tracked as CVE-2026-77179 and CVE-2026-79994, were fixed in Docker Sandboxes version 0.42.0, released on September 7.
Docker Sandboxes uses isolated microVM environments to run potentially untrusted workloads, including code and AI-agent tasks. The security model depends on strict separation between the guest environment and files, sockets, and services on the host. Both vulnerabilities weaken that boundary through unsafe handling of filesystem paths.
CVE-2026-77179 is rated Critical and affects Docker Sandboxes versions 0.28.0 through versions before 0.42.0 on macOS. The issue exists in the virtio-fs host server, which provides file-sharing capabilities between a sandbox guest and the host system.
Docker Sandboxes Vulnerabilities
The vulnerable component could follow symbolic links when reopening an unlinked file from a previously stored path. An attacker controlling a guest could replace a parent directory with a symlink after the initial path was recorded.
This race condition could redirect a later file operation outside the approved shared workspace. Successful exploitation could let the malicious guest read or alter arbitrary host files accessible to the virtual machine monitor, or VMM, user.
Because modification of sensitive host files can create a path to code execution, the impact could extend from workspace escape to compromise of the underlying macOS host.
The second flaw, CVE-2026-79994, is rated High and affects Docker Sandboxes versions 0.37.0 through versions before 0.42.0. It involves the guest-to-host Unix domain socket relay. This mechanism allows a sandbox to communicate with authorized host-side Unix sockets.
The relay first verified that a socket path was located within an authorized workspace. However, it later reconnected using the original path name instead of a securely retained file reference. Between verification and connection, a malicious guest could replace an intermediate directory with a symlink.
This time-of-check to time-of-use condition could cause the host to connect to an arbitrary AF_UNIX socket outside the intended workspace.
Depending on the targeted socket, an attacker might expose data or access host-side functions available through that service.
Organizations using Docker Sandboxes should upgrade to version 0.42.0 or later immediately, especially macOS users running untrusted code, third-party repositories, or autonomous AI workloads. Docker recommends using clone mode and avoiding read-write host mounts where an immediate upgrade is not possible.
The disclosures follow other Docker security fixes in 2026, including CVE-2026-17106, a destination-escape issue in docker container cp fixed in Docker Desktop 4.86.0.
The pattern reinforces the importance of applying updates promptly and minimizing host filesystem exposure in container- and microVM-based development workflows.
Cut every SOC alert investigation by 21 min. Power your SOC with instant IOC context for immediate response: Integrate TI Lookup in your SOC
Abinayahttps://cybersecuritynews.com/
Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.
Text extracted automatically; images, tables and formatting may be missing. Original: https://cybersecuritynews.com/critical-docker-sandboxes-vulnerabilities/