Advisory

GO-2026-5617

Also known as: CVE-2026-42306, GHSA-rg2x-37c3-w2rh

Summary

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.

Severity

Not rated by the source.

Dates

Published
2026-06-25 22:34 UTC
Modified
2026-07-28 16:30 UTC

Affected packages and fixes

github.com/docker/docker

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/moby/moby

Go · All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/moby/moby/v2

Go · All systems

Affected

  • introduced 0, fixed 2.0.0-beta.14 (semver)

Fixed versions

2.0.0-beta.14

Fix

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

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences