← All research

CVE-2026-103916

Symlink Following in sbx cp Escapes the Docker Sandboxes Workspace

01Record

IdentifierCVE-2026-103916
ProjectDocker Sandboxes
Componentsbx cp
CWECWE-59
CVSS8.4
Disclosed2026-11-03
Endor referenceENDOR-VUL-2026-2109
WriteupLink

02Detail

Description: Docker Sandboxes' sbx cp command copies files between the host and a sandbox outside the shared virtio-fs allowlist that otherwise confines the sandbox. It resolves symlinks in host paths and acts on the resolved target, but its -L symlink control only governs the last path component. A process inside the sandbox can plant a symlink at a parent component of a path under a granted workspace. When the operator later runs a copy, the CLI follows that symlink to host locations outside the allowlist.

The result is a sandbox escape in both directions: a malicious sandbox can read arbitrary host files into the sandbox, or write sandbox-authored content to host paths outside the workspace, with the invoking user's permissions. Because the trigger is an operator-initiated sbx cp, a prompt injection that steers an AI agent into running the copy is enough to drive it.

Impact: Confidentiality and integrity loss across the sandbox boundary — arbitrary host-file read into the sandbox and sandbox-controlled write to host paths, bounded by the invoking user's permissions.

Affects Docker Sandboxes from 0.28.0 up to 0.51.0. An initial fix in 0.48.0 was found to be incomplete; the complete fix shipped in 0.51.0, released 2026-11-03. Tracked as CWE-59, Improper Link Resolution Before File Access.

Discovered by Peyton Kennedy (p80n).