LowGO-2026-5668CVE-2026-41568GHSA-vp62-88p7-qqf5

Race condition in 'docker cp' in github.com/docker/docker allows creation of arbitrary files

Published 25 Jun 2026 · Updated 11 Aug 2026

Is your project on an affected github.com/docker/docker?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
All versions
Fixed in
No fix released
Affected
All versions
Fixed in
No fix released
Affected
<2.0.0-beta.14
Fixed in
2.0.0-beta.14
Update to the fixed version for your release line, for example:go get github.com/moby/moby/v2@v2.0.0-beta.14

Details

A race condition in the Docker daemon allows an attacker to create arbitrary empty files on the host system during a "docker cp" operation by swapping a destination path with a symbolic link.

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

Is GO-2026-5668 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/docker/docker, and gives you the command that fixes it.

More advisories for github.com/docker/docker

  • LowCVE-2026-41567Docker: 'PUT /containers/{id}/archive' executes container binary on the host in github.com/docker/docker · 25 Jun 2026
  • LowCVE-2026-42306Race condition in 'docker cp' in github.com/docker/docker allows bind mount redirection · 25 Jun 2026
  • HighCVE-2026-42306Docker: Race condition in docker cp allows bind mount redirection to host path · 18 May 2026
  • HighCVE-2026-41567Docker: `PUT /containers/{id}/archive` executes container binary on the host · 18 May 2026
  • LowCVE-2026-33997Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker · 2 Apr 2026
  • LowCVE-2026-34040Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker · 2 Apr 2026
All 66 advisories for github.com/docker/docker

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.