CVE-2026-103916: Docker Sandboxes' sbx cp Followed Symlinks Out of the Workspace

Docker published v0.51.0 of Docker Sandboxes on 3 November. The security section of the release notes has one line about the copy command:

sbx cp blocks symbolic links in mounted directories from escaping onto other host paths.

CVE-2026-103916 published the same day, at 16:19 UTC, with Docker as the assigning authority [2][6].

The line had a predecessor. v0.48.0, released 13 October, says the same thing in different words: “sbx cp blocks local paths that escape a sandbox workspace through symbolic links” [7]. Peyton Kennedy, who found the bug at Endor Labs, describes the gap between the two notes: “Docker’s fix was initially slated to ship October 13, 2026 with version 0.48.0 but after the initial patch was live, the Docker team determined the fix was incomplete” [1].

The two notes land twenty-one days apart and describe the confinement of the same command. Endor’s account is that the October patch went live and Docker later judged it incomplete. Nothing Endor published tests the November note, so it stands as Docker’s account of the second attempt rather than a verified result. That gap matters more to an operator than the score does.

What the command is, and what it bypassed

sbx cp arrived in v0.28.0 on 27 April 2026, in the same release that introduced kits: “Add sbx cp command for host-container file copy” [8]. Docker Sandboxes runs an agent inside a microVM and shares the folders you name with it through virtio-fs. Those folders are the allowlist the product’s security model rests on. sbx cp is a second route between host and sandbox, and it does not use that share [1].

On that second route the host side is ordinary file I/O performed by the CLI process, running as you, with your permissions. Kennedy’s sentence is the one to keep: “The allowlist is never consulted” [1]. Docker’s own record describes the same design in its own words, a copy that “reads a host file outside the workspace into the sandbox or writes sandbox-controlled data to a host path outside the workspace with the invoking user’s permissions” [2].

The mechanism needs one action from the sandbox and one from you. A workspace is granted read-write, so the agent can replace a subdirectory inside it with a symlink pointing at a directory it was never given. Inside the guest the link dangles, because the target path does not exist there, so planting it achieves nothing on its own [1]. It takes effect when you run a copy and the CLI resolves the link on the host.

The command has exactly one symlink control, the -L flag, and it governs one of the four places a link can sit in a copy:

  • Copy-out destination, last component: followed by default, -L is irrelevant.
  • Copy-out destination, parent component: followed by default.
  • Copy-in source, last component: not followed unless -L is passed.
  • Copy-in source, parent component: followed by default.

“Three of the four positions are open. The one that is gated is gated correctly” [1]. A test that points -L at a leaf symlink passes and never touches the other three, which is the only thing a test written against that flag would find.

In the copy-out direction the agent puts the link where it expects results to be, you copy a file out into results/, and the file behind the link ends up holding sandbox content. The command exits zero and prints nothing [1]. In the copy-in direction the link goes one component to the left of a plausible filename, and the host file lands inside the sandbox.

How far the primitive reaches

Both directions wait on one command from you. sbx cp --help offers sbx cp my-sandbox:/home/user/output.log ./ as its example, and moving build artifacts, logs and dependencies between host and sandbox is the normal shape of an agent session. Kennedy again: “Both the read and write need one operator command, and it is the command the product teaches” [1].

The write is the stronger half. It places agent-chosen content “in any existing directory the operator can write, which is their whole home directory” [1]. From there, ~/.zshrc, ~/.ssh/authorized_keys, a core.pager in .gitconfig or a script in .git/hooks convert the write into execution the next time you do something ordinary. Kennedy is explicit that this step is argued and not demonstrated: “I did not demonstrate it, so I am stating it as reasoning rather than as a result” [1].

The read is narrower. “The sandbox chooses the directory and the operator types the filename, so it needs a guessable target” [1]. One file at a time, and the target’s parent directory has to exist already [1]. Against ~/.aws/credentials or a private key, a guessable filename is not much of a barrier, and the agent is often the one proposing the command. It is still not a directory grab.

This is a real escape from the folder allowlist in a product whose selling point is the folder allowlist, and it is not an unauthenticated compromise of anything. I find the release history more interesting than the severity.

The containment, claimed twice

Docker’s 13 October note claims the confinement in a release whose overall theme was a CLI refactor [7]. Three weeks later, in the security section of v0.51.0, the same behaviour is claimed again, with a Windows case added: “On Windows, it also blocks workspace escapes through substituted drives” [6].

What happened in between is Endor’s account, not Docker’s. Kennedy writes that the fix was slated for 13 October in 0.48.0, that the patch went live, and that Docker later determined it was incomplete: “The finalized patch was then released November 3, 2026 with version 0.51.0.” [1] No document I found says that the October release note and the incomplete patch are the same change. The dates and the subject make it close to certain, and I would rather write that down than imply I confirmed it.

The record marks every version from 0.28.0 up to but excluding 0.51.0 as affected, with defaultStatus set to unaffected, and 0.28.0 is the release that added the command [2][8]. Docker’s remediation note is specific: “Until upgrading, do not use sbx cp with a host-side source or destination inside a workspace writable by untrusted sandbox code” [2].

Nor do the notes say which of Kennedy’s three suggestions landed. He asked Docker to contain the copy-out destination root before extraction, apply the -L rule to every component of a copy-in source rather than only the last, and print the resolved path on success the way sbx mount prints Mounted at [1]. Docker’s note says what sbx cp now blocks and adds the Windows drive case. It does not describe the mechanism, and it does not name the CVE [5][6]. Endor published no verification against 0.51.0, so the only claim that the fix works is Docker’s.

The documentation already said this

The isolation page carries a sentence under filesystem isolation: “Symlinks pointing outside the workspace scope are not followed” [12]. A Wayback capture from 30 October 2026, four days before the record published, carries the identical sentence [13]. The documentation did not change with the release. Docker’s note describes the copy channel as now meeting a claim the docs were already making.

That sentence needs its scope, though, because it sits in the bullet about the virtio-fs workspace share, and Endor’s finding is that a second channel sat outside that share entirely [1][12]. Read as a statement about the share, it was accurate. Read as a statement about the product, it was not, and nothing on the page drew the distinction. The same page is candid about a related gap in the share it does govern: “If a workspace file is a hard link to a file outside the workspace, the agent can read and modify the underlying file through the workspace path” [12].

The record around this one

I counted the product’s record rather than looking at this CVE alone. An NVD keyword query for “Docker Sandboxes” run on 13 November returns 13 records, 12 of which name the product; the thirteenth is a false positive about an unrelated platform [22]. The window runs from 18 June to 12 November 2026. All 12 carry security@docker.com as their source, and all 12 are still marked “Awaiting Analysis” at NVD, so every score in this space is vendor-supplied with no independent review behind it [3][22].

Four of the twelve are link or path-confusion escapes:

  • CVE-2026-18171, 5.7: a read-only host mount that stayed writable through its shared-export alias [20].
  • CVE-2026-77179, 9.4 CRITICAL: “the virtio-fs host server used by Docker Sandboxes improperly follows symlinks when reopening an unlinked file from a stored path”, on macOS, with host code execution in the description [18].
  • CVE-2026-79994, 8.7: a symlink race in the guest-to-host Unix socket relay [19].
  • CVE-2026-103916, 8.4: this one, in the copy command [2].

CVE-2026-17106 is a thirteenth by association and sits outside that count, because its description names the extractor library rather than the product. It is the moby/go-archive bug, where the extraction routines “do not confine filesystem operations to the destination directory”, and it reached Docker Engine, the CLI, Compose and Docker Desktop along with Sandboxes [10][11]. Sandboxes fixed it in v0.38.0 on 6 August, with the note “Fixed a destination-escape flaw in sbx cp copy-out” [9]. So the honest count is two CVE records touching this command and four link-following records in the product.

The two published scores disagree, and not by a rounding error. Docker’s record carries CVSS 4.0 8.4, and its vector sets attack requirements to none, privileges required to none and subsequent-system impact to none [2][3]. Endor published 7.3 on CVSS 4.0 and 8.2 on CVSS 3.1, and no CVSS 3.1 score exists in the record or at NVD; their CVSS 4.0 vector sets attack requirements to present, privileges to low and subsequent-system impact to high [1][2][3]. Docker scores the sandboxed agent as holding no privilege and reaching nothing beyond the host path it copies. Endor scores it as a local user whose impact lands on the host. Both readings are defensible against the same facts, which usually means the number is carrying less than the description.

On exploitation, CISA’s enrichment records exploitation as “none,” automatable as “no” and technical impact as “partial,” dated the day the record published [2]. EPSS is 0.21% [4]. Neither this CVE nor CVE-2026-17106 appears in the KEV catalog, current version 2026.11.10 with 1,779 entries [17]. Endor describes a route in through prompt injection, not an observed campaign [1].

On 25 September I called Docker Sandboxes the first conforming runtime in the Kit Specification’s conformance model (Portable Authority). CVE-2026-77179 and CVE-2026-79994 had been public for ten days by then, and both had been fixed on 7 September, so the product I was describing was patched. I did not mention either record. That is an omission about the product’s history, and it belongs next to the sentence I wrote.

Why this is not a conformance story

The omission is about coverage, not about the Kit model. sbx cp is copy semantics. The word cp appears zero times in the spec and zero times in the conformance document; “symlink” appears once in each, in a rule about mixin layers and in a sentence about the HOME and PWD environment variables [15][16]. The runtime suite judges capability pages, and the closest of those, host-mount@1, says nothing about links [15]. Neither suite exercises copy semantics, so there was nothing here to pass or fail.

Cloud Sandboxes are outside the primitive as well. It needs host paths, and the docs say a cloud sandbox has “no access to host paths” and “no path back to the machine where you run sbx” [14]. Docker’s affected data names one product and one version range without distinguishing backends, so the exclusion is by construction rather than by statement [2].

What I take from it

Endor’s takeaway is that channels which move files on behalf of the operator sit outside the model “because they look like the operator’s own action” [1]. That holds for the copy command, and it sits awkwardly beside the same takeaway’s claim that “the virtio-fs channel is guarded by an allowlist and the copy channel is not” [1]. The version Kennedy’s write-up works against is v0.43.0, which is after v0.42.0 fixed two symlink escapes in the channel he calls guarded: CVE-2026-77179 and CVE-2026-79994, both fixed on 7 September [18][19][21]. So the guarded channel had produced link-following escapes of its own seven weeks earlier. An allowlist decides which folders are shared. It says nothing about how a path inside a shared folder resolves, and that is where all four of these bugs lived.

The release history is the other half of this. On 13 October it said the confinement had shipped [7]. Endor’s account has Docker finding that patch incomplete, with the finalized one released on 3 November, the day the record published [1][6]. Release notes are not advisories, and the second attempt came within three weeks. But for that stretch an operator reading the note had been told the copy command was contained, and on Endor’s account it was not. Anyone tracking this product by CVE feed alone learned about it on 3 November.

The operating advice Endor gives is the advice I would give too: resolve the path yourself before a copy in either direction and confirm it stays inside the workspace, prefer directories the sandbox has never had mounted, and be most suspicious of a copy the agent proposed [1].

Sources

  1. Docker Sandboxes vulnerability lets AI agents access sensitive files outside their sandbox (CVE-2026-103916) — Endor Labs, Peyton Kennedy, 3 November 2026
  2. CVE-2026-103916 — CVE Program record, CNA: Docker
  3. CVE-2026-103916 detail — NVD
  4. GHSA-82h2-77xp-45m9 — GitHub Advisory Database
  5. Docker Sandboxes release notes — Docker documentation
  6. docker/sbx-releases v0.51.0 — GitHub
  7. docker/sbx-releases v0.48.0 — GitHub
  8. docker/sbx-releases v0.28.0 — GitHub
  9. docker/sbx-releases v0.38.0 — GitHub
  10. CVE-2026-17106 — CVE Program record, CNA: Docker
  11. GHSA-hfg8-hc9c-6c3h: crafted tar archive can write outside the extraction directory — moby/go-archive advisory
  12. Docker docs: Isolation layers — Docker documentation
  13. Docker docs: Isolation layers, capture of 30 October 2026 — Internet Archive
  14. Docker docs: Compare local and cloud sandboxes — Docker documentation
  15. Docker Sandbox Kit Specification: conformance — docker/sandbox-kit-spec
  16. Docker Sandbox Kit Specification v3 — docker/sandbox-kit-spec
  17. CISA Known Exploited Vulnerabilities catalog — CISA, catalog version 2026.11.10
  18. CVE-2026-77179 — CVE Program record, CNA: Docker
  19. CVE-2026-79994 — CVE Program record, CNA: Docker
  20. CVE-2026-18171 — CVE Program record, CNA: Docker
  21. docker/sbx-releases v0.42.0 — GitHub
  22. NVD keyword query for “Docker Sandboxes” — NVD API, queried 13 November 2026