NetSight
high7.2

CVE-2026-42306

Docker: Race condition in docker cp allows bind mount redirection to host path

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/docker/docker<= 28.5.2none recorded
gogithub.com/moby/moby/v2< 2.0.0-beta.142.0.0-beta.14
gogithub.com/moby/moby<= 28.5.2none recorded

Affected products

VendorProductAffected versions
DockerEngine
before 29.5.1
MobyprojectMoby
through 28.5.2
MobyprojectMoby\/V2
Version 2.0.0

Weakness classification

References