github.com/docker/docker
Affected
- introduced
0, last affected28.5.2(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: CVE-2026-42306, GO-2026-5617
Docker: Race condition in docker cp allows bind mount redirection to host path
Summary
A race condition during docker cp mount setup allows a malicious container to redirect a bind mount target to an arbitrary host path, potentially overwriting host files or causing denial of service.
Details
When copying files into a container, the daemon sets up a temporary filesystem view by bind-mounting volumes into a private mount namespace. During this setup, the mount destination is created inside the container root and then a bind mount is attached using the container-relative path resolved to an absolute host path.
Between mountpoint creation and the mount() syscall, a process running inside the container can replace the destination (or a parent path component) with a symlink pointing to an arbitrary location on the host. The mount() syscall follows the symlink, causing the volume to be bind-mounted onto an arbitrary host path instead of the intended container path.
Impact
A malicious container can redirect a volume bind mount to an arbitrary host path. The impact depends on the volume content and mount options:
docker cp completes), but the effects of any writes persist.Conditions for exploitation
docker cp into that container, or call the PUT /containers/{id}/archive or HEAD /containers/{id}/archive API endpoints.Not affected
Workarounds
docker cp with untrusted running containers.PUT /containers/{id}/archive, HEAD /containers/{id}/archive).High Basis: The source's own band: HIGH
0, last affected 28.5.2 (semver)None listed
No fixed version is listed.
0, fixed 2.0.0-beta.14 (semver)2.0.0-beta.14
2.0.0-beta.14go get github.com/moby/moby/[email protected]0, last affected 28.5.2 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0