—
GO-2026-6253
moby/go-archive: Crafted tar archive can write outside the extraction directory in github.com/moby/go-archive
Quick fix
GO-2026-6253 — github.com/moby/go-archive: upgrade to the fixed version with the command below.
go get github.com/moby/go-archive@v0.3.0Details
moby/go-archive: Crafted tar archive can write outside the extraction directory in github.com/moby/go-archive
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/moby/go-archive
Introduced in:
0Fixed in: 0.3.0Fix
go get github.com/moby/go-archive@v0.3.0References
- https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h[ADVISORY]
- https://docs.docker.com/desktop/release-notes/#4860[WEB]
- https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape[WEB]
- https://github.com/docker/cli/releases/tag/v29.7.0[WEB]
- https://github.com/moby/moby/issues/52948[WEB]
- https://github.com/moby/moby/releases/tag/docker-v29.7.0[WEB]
- https://www.imperva.com/blog/copyescape-taking-over-docker-hosts-with-docker-cp[WEB]