LowGO-2026-5746CVE-2026-41567GHSA-x86f-5xw2-fm2r

Docker: 'PUT /containers/{id}/archive' executes container binary on the host in github.com/docker/docker

Published 25 Jun 2026 · Updated 23 Jul 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

The Docker daemon's implementation of the "PUT /containers/{id}/archive" endpoint executes a container binary on the host when extracting an archive to a container. On Unix-like systems, this can be exploited if an attacker can control the container's filesystem or the archive being extracted, potentially leading to privilege escalation or host compromise.

The affected code is located in the daemon package, specifically in the containerExtractToDir method of the Daemon struct. This package is part of the Moby daemon's core and is not intended for external use as a library.

Is GO-2026-5746 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-41568Race condition in 'docker cp' in github.com/docker/docker allows creation of arbitrary files · 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
  • MediumCVE-2026-41568Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap · 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.