{"id":"GHSA-hfg8-hc9c-6c3h","revision":"e7620026b2314d94b5a42e0389fab310","records":[{"revision":"e7620026b2314d94b5a42e0389fab310","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-hfg8-hc9c-6c3h","aliases":["BIT-docker-cli-2026-17106","CVE-2026-17106","GO-2026-6253"],"title":"moby/go-archive: Crafted tar archive can write outside the extraction directory","description":"### Summary\nThe tar extraction routines in `moby/go-archive` (`Unpack`, `UnpackLayer`, `Untar`/`UntarUncompressed`, and the `ApplyLayer` helpers) do not confine filesystem operations to the destination directory. A crafted archive can create or overwrite files **outside** the intended destination. \n\n### Details\nThe extractor decides where each archive entry lands using lexical string checks and then performs the filesystem operation on a path that is resolved by the OS, so a links introduced by the archive can be followed out of the destination directory.\n\n### Impact\nAn attacker who controls the contents of archive can create or overwrite files at arbitrary paths writable by the extracting process.\n\n### Workarounds\nOnly extract trusted archives.","state":0,"publishedAt":"2026-08-18T21:17:29+00:00","modifiedAt":"2026-09-10T03:50:53.6132342+00:00","affected":[{"ecosystem":"Go","name":"github.com/moby/go-archive","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.3.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h","https://github.com/moby/moby/issues/52948","https://docs.docker.com/desktop/release-notes/#4860","https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape","https://github.com/docker/cli/releases/tag/v29.7.0","https://github.com/moby/go-archive","https://github.com/moby/moby/releases/tag/docker-v29.7.0","https://www.imperva.com/blog/copyescape-taking-over-docker-hosts-with-docker-cp"],"sourceUrl":"https://github.com/advisories/GHSA-hfg8-hc9c-6c3h","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-hfg8-hc9c-6c3h","identifiers":["GHSA-hfg8-hc9c-6c3h","BIT-docker-cli-2026-17106","CVE-2026-17106","GO-2026-6253"]},"retained":false,"historicalAffected":[]}],"coverage":[]}