CVE-2026-126139: Docker Sandboxes mount replay follows replaced source ancestors outside the shared directory
Docker Sandboxes re-resolves saved mount paths when replacing a sandbox container during kit changes or restarting a sandbox. An attacker able to replace a source ancestor in a shared writable workspace with a symlink can redirect another sandbox's mount to a different host directory, exposing its contents and permitting modification through read-write mounts. The destination must remain accessible to the daemon and allowed by policy where enforced. Saved-mount replay during kit replacement was introduced in version 0.35.0; ordinary restart replay was added in version 0.45.0. This saved-mount replay issue is fixed in version 0.54.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.54.0
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Deployments using Docker Sandboxes with saved mounts sourced from a shared writable workspace are exposed if one sandbox user can replace a source-path ancestor with a symlink. The impact is on other sandboxes whose saved mounts are replayed during kit replacement or restart.
What must an attacker be able to do to exploit it?
The attacker must be able to replace an ancestor of a saved mount source path in a shared writable workspace with a symlink. The redirected destination must be accessible to the Docker daemon and permitted by applicable policy enforcement.
When is the vulnerable mount replay triggered?
Replay occurs when a sandbox container is replaced during kit changes or when a sandbox is restarted. Kit-replacement replay was introduced in 0.35.0, while ordinary restart replay was added in 0.45.0.
How can this issue affect another sandbox?
A replaced source ancestor can cause a saved mount to resolve to a different host directory when replayed. This can expose that directory's contents to another sandbox and, for read-write mounts, allow its contents to be modified.
What version fixes the issue?
The saved-mount replay issue is fixed in Docker Sandboxes version 0.54.0.