ADVISORIES

Go Vulnerability Database

GO-2026-5617

Race condition in 'docker cp' in github.com/docker/docker allows bind mount redirection

Details

A race condition in the Docker daemon allows an attacker to redirect bind mounts to arbitrary host paths during a "docker cp" operation.

The affected code is in the daemon package, specifically the openContainerFS method. This is daemon-owned, Linux-specific code and is not intended for external use as a Go library.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/docker/docker
All versions, no fix listed
Gogithub.com/moby/moby
All versions, no fix listed
Gogithub.com/moby/moby/v2
All versions before 2.0.0-beta.14 (fixed in 2.0.0-beta.14)

References