Moby: Race condition in docker cp allows bind mount redirection to host path
moby
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/docker/docker Go |
| No fix yet |
| github.com/moby/moby/v2 Go |
|
|
| github.com/moby/moby Go |
moby
| Product | Affected | Fixed in |
|---|---|---|
| github.com/docker/docker Go |
| No fix yet |
| github.com/moby/moby/v2 Go |
|
|
| github.com/moby/moby Go |
|
| No fix yet |
Moby is an open source container framework. In Docker Engine prior to version 29.5.1, Docker Daemon versions 28.5.2 and prior, and Moby Daemon prior to version 2.0.0-beta.14, 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. This issue has been patched in Docker Engine version 29.5.1 and Moby Daemon version 2.0.0-beta.14.
From the CVE record · GitHub_M
A race condition during docker cp mount setup affects Docker Engine before 29.5.1, Docker Daemon 28.5.2 and earlier, and Moby Daemon before 2.0.0-beta.14. During docker cp, a malicious container can redirect a bind mount target to an arbitrary host path, potentially overwriting host files or causing denial of service.
Engineers running those affected daemon versions or using github.com/moby/moby/v2 before 2.0.0-beta.14, github.com/docker/docker, or github.com/moby/moby should check their deployments.