CVE-2026-126139: Docker Sandboxes re-resolves saved mount paths through a symlink another sandbox can plant

ByLinuxtastic

December 1, 2026 #CVE, #Docker Sandboxes

A Docker Sandbox mounts a host directory into its microVM, and the daemon remembers the mount so it can set it up again when the sandbox is restarted or its container is replaced during a kit change. The Docker CNA record says that replay “re-resolves saved mount paths”, following whatever the saved path now points at rather than the directory it originally meant. An attacker who can replace an ancestor of another sandbox’s mount source with a symlink, which a shared writable workspace allows, redirects that sandbox’s mount to a different host directory the next time it is replayed, “exposing its contents and permitting modification through read-write mounts”; the destination must still be reachable by the daemon and allowed by mount policy where that is enforced. Replay during kit replacement arrived in 0.35.0, replay on ordinary restart in 0.45.0, and 0.54.0 fixes both. The vector is local, with attack requirements, low privileges and passive user interaction, for a 5.3; the record lists Linux only. Update sbx to 0.54.0 or later on hosts where more than one workload shares a writable directory, and stop untrusted workloads from writing to the ancestors of another sandbox’s mount source until you have.

CVE-2026-126139 at a glance.

ComponentDocker Sandboxes, saved-mount replay on sandbox restart and on container replacement during kit changes
Affected versionsDocker Sandboxes 0.35.0 up to but not including 0.54.0, per the Docker CNA record (kit-replacement replay since 0.35.0, restart replay since 0.45.0); NVD lists the platform as Linux only
Fixed inDocker Sandboxes 0.54.0, released 16 November 2026; the record’s solution is “Upgrade Docker Sandboxes to version 0.54.0 or later”. The 0.54.0 release notes do not name the CVE; the entry “When a saved mount’s source resolves to a different directory, startup refuses the mount. Remove it with sbx umount, then mount the intended directory again” is the behaviour the record describes, and the mapping is ours
SeverityDocker (CNA) CVSS 4.0 5.3 Medium (AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N), CWE-61 (UNIX symlink following). NVD Received with the CNA score, no CVSS 3.x
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00201 (10.6th percentile) on 1 December 2026
Who is exposedLinux hosts running Docker Sandboxes 0.35.0–0.53.x where two or more workloads share a writable directory that is an ancestor of a sandbox’s mount source, and where one of those workloads is not trusted: a shared project tree with several agents, or a CI runner mounting sub-directories of one checkout. The record’s workaround: “Avoid sharing writable ancestors of another sandbox’s mount source with untrusted workloads”, and make sure such workloads cannot replace any component of a saved mount source before restarting the target sandbox or changing its kits
PublishedRelease 0.54.0 16 November 2026, CVE record 26 November 2026; this page built 1 December 2026, last updated 1 December 2026

What it is

Each Docker Sandbox is a microVM with its own kernel and its own Docker Engine, and its link to the host filesystem is a mount: by default sbx run bind-mounts the current directory read-write, a clone-mode sandbox mounts the repository read-only at /run/sandbox/source, and other directories can be added. The daemon saves these mounts so that the sandbox comes back with the same view after a restart, and so that the container can be swapped for a new one when the sandbox’s kits change. The flaw is in how the saved path is used on replay: the daemon resolved the path again at that moment instead of binding the directory it had resolved the first time. A symlink planted in the meantime at any component of that path is followed.

The attacker in the record is another workload with write access to an ancestor of the victim’s mount source. A shared writable workspace, say a project tree under which two sandboxes mount different sub-directories, gives exactly that: the untrusted sandbox renames the victim’s source directory away and puts a symlink in its place pointing at a host directory it wants, then waits for the victim sandbox to be restarted or re-kitted. On replay the victim’s mount lands on the attacker’s target, read-only or read-write according to the original mount, so the victim’s agent reads and possibly writes a directory nobody meant it to see. Two limits apply: the target has to be reachable by the daemon, and where a mount policy is enforced it still applies. The CVSS 4.0 vector says the rest: local, attack requirements present, low privileges, passive user interaction, high confidentiality and integrity impact.

0.54.0, released 16 November, refuses a saved mount whose source now resolves to a different directory and tells the operator to remove it with sbx umount and mount the intended directory again, which is the record’s fix read against the release notes; the same release also stopped generated SSH configuration from letting crafted host or user names run shell commands and moved clone-mode Git fetches from an unauthenticated localhost TCP port to the daemon socket. The researcher credited is Ruben Boonen. The record was published on 26 November, ten days after the release, and the first of the two Docker Sandboxes records this month; CVE-2026-136998, the credential-destination flaw fixed in 0.55.0 on 30 November, is the second. The facts here are from the CVE record, NVD, the 0.54.0 release notes and Docker’s isolation and overview documentation.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Docker Sandboxes is not packaged by any distribution: it is installed from Docker’s release assets (a .deb for Ubuntu 24.04 and 26.04, an .rpm for Rocky 8, and tarballs), so the distribution rows record only that the trackers have nothing, and the upstream row is the one that applies.

DistributionStatusFixed package
AlpineNot packaged; tracker not consulted—
DebianNot packaged; tracker not consulted for this id (the Debian page for the companion CVE-2026-136998 returned a client error)—
UbuntuNot packaged (Docker’s own .deb targets 24.04 and 26.04); tracker not consulted for this id—
RHEL, Rocky, Alma, CentOS StreamNot packaged (Docker’s own .rpm targets Rocky 8); tracker not consulted for this id—
SUSE · Fedora · ArchNot packaged; not consulted—
Docker’s own packages and installer (sbx) on LinuxThe upstream fix applies; the record lists Linux onlyDocker Sandboxes 0.54.0 (16 November 2026); 0.55.0 (30 November) is current

How to check

Three questions, in order: which Sandboxes version is installed, which host directories are mounted into which sandboxes and whether any two share a writable ancestor, and whether anything on the host could have replaced a path component in the meantime. The second is the one that decides exposure; a single sandbox mounting its own project directory has no attacker in the picture.

# 1. version (0.54.0 or later is fixed)
sbx version

# 2. saved mounts per sandbox, and shared writable ancestors (subcommand names from sbx --help)
sbx --help 2>/dev/null | grep -iE "mount|list|ps"
ls -la ~/.config/sbx/ 2>/dev/null
# for each mounted source, does any path component resolve through a symlink now?
for d in /path/to/mount/source; do p="$d"; while [ "$p" != "/" ]; do [ -L "$p" ] && echo "symlink: $p -> $(readlink "$p")"; p=$(dirname "$p"); done; done
realpath /path/to/mount/source

# 3. who can write to the ancestors (any uid other than yours is a candidate planter)
for d in /path/to/mount/source; do p="$d"; while [ "$p" != "/" ]; do stat -c "%U %a %n" "$p"; p=$(dirname "$p"); done; done

A host on 0.54.0 or later is done: a saved mount whose source resolves elsewhere is refused at start-up and reported, and the operator removes and re-adds it. On an older version, a mount whose ancestors are writable by another workload or user is the exposure, and a symlink found in step 2 at a path component that was a directory when the mount was made is a hit; realpath against what you expected tells you where the mount would land on the next restart. After the fact, a sandbox that found files it should not have, or wrote where it should not have, is the only trace, since the daemon did not log the re-resolution before 0.54.0.

How to fix it

Update the sbx CLI from Docker’s release channel, then restart each sandbox and act on any mount the new version refuses; the refusal is the fix doing its job, and sbx umount followed by mounting the intended directory again clears it.

# update to 0.54.0 or later: the CLI's own updater (see sbx --help), or the package for your platform from
# https://github.com/docker/sbx-releases/releases (.deb for Ubuntu 24.04/26.04, .rpm for Rocky 8, tarballs)
sbx version                      # must read 0.54.0 or later afterwards; 0.55.0 also closes CVE-2026-136998

# a mount the new version refuses at start-up: remove it and mount the directory you meant
sbx umount <name>
# then re-add the intended directory with the mount options you used before (see sbx --help)

The record’s workaround until the upgrade is structural: do not share writable ancestors of a sandbox’s mount source with untrusted workloads, and before restarting a sandbox or changing its kits make sure no untrusted workload could have replaced any component of its saved source. Giving each sandbox its own directory tree, owned by its own user, satisfies both. What not to do: do not mount the parent of several projects into several sandboxes because it is convenient, since that is the shared writable ancestor the record names; and do not read “Linux only” as “not me” on a Linux developer machine, which is where the local sandboxes run.

Sources

  • CVE-2026-126139 at CVE.org — the Docker CNA record (26 November 2026): the re-resolved saved paths, the symlinked ancestor, the daemon-reachable and policy limits, 0.35.0 and 0.45.0 as the origins of the two replay paths, fixed in 0.54.0, CVSS 4.0 5.3, CWE-61, the workaround, credit Ruben Boonen
  • Docker Sandboxes v0.54.0 release — 16 November 2026: “When a saved mount’s source resolves to a different directory, startup refuses the mount”; the SSH-config and clone-mode Git changes in the same release
  • Docker Sandboxes isolation documentation — the microVM with its own kernel and Docker Engine, the host-side proxy, direct-mount and clone-mode workspaces, the hard-link caveat
  • Docker Sandboxes overview — what a sandbox and a kit are, the sbx CLI, local sandboxes on Linux
  • NVD entry — Received; published 26 November 2026; the CNA’s CVSS 4.0 vector and CWE-61; affected 0.35.0 to before 0.54.0 on Linux; no CPEs
  • Distribution trackers: not consulted for this id; Docker Sandboxes is not packaged by Debian, Ubuntu, Red Hat, SUSE or Alpine
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00201 (percentile 0.106) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.