{"id":"CVE-2026-17106","aliases":["CVE-2026-17106","GHSA-hfg8-hc9c-6c3h","BIT-DOCKER-CLI-2026-17106","GO-2026-6253"],"related":["CGA-hj86-cwfh-8vvv"],"kind":"vulnerability","state":"published","title":"Tar extraction in moby/go-archive can write outside the destination directory via link following","summary":"The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) do not confine filesystem operations to the destination directory. The 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 links introduced by the archive can be followed out of the destination directory. An attacker who controls the contents of an archive can create or overwrite files at arbitrary paths writable by the extracting process.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) do not confine filesystem operations to the destination directory. The 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 links introduced by the archive can be followed out of the destination directory. An attacker who controls the contents of an archive can create or overwrite files at arbitrary paths writable by the extracting process.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"moby/go-archive: Crafted tar archive can write outside the extraction directory in github.com/moby/go-archive","format":"markdown","source":"go"}],"published":"2026-08-18T18:35:13.465Z","modified":"2026-09-10T03:50:53.613Z","severity":{"scorer":"Docker","scheme":"CVSS:4.0","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":7.1,"rating":"HIGH"},"severities":[{"scorer":"Docker","scheme":"CVSS:4.0","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":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-22","CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.3.0","status":"affected"}],"vendor":"moby","product":"go-archive","package":"github.com/moby/go-archive","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"0.38.0","status":"affected"}],"vendor":"Docker","product":"Docker Sandboxes","cpe":"cpe:2.3:a:docker:docker_sandboxes:*:*:*:*:*:*:*:*","platforms":["MacOS","Linux","Windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"4.86.0","status":"affected"}],"vendor":"Docker","product":"Docker Desktop","cpe":"cpe:2.3:a:docker:desktop:*:*:*:*:*:*:*:*","platforms":["MacOS","Linux","Windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"29.7.0","status":"affected"}],"vendor":"Docker","product":"Docker Engine","platforms":["MacOS","Linux","Windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"29.7.0","status":"affected"}],"vendor":"Docker","product":"Docker CLI","platforms":["MacOS","Linux","Windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"5.4.0","status":"affected"}],"vendor":"Docker","product":"Docker Compose","platforms":["MacOS","Linux","Windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"Go","package":"github.com/moby/go-archive","purl":"pkg:golang/github.com/moby/go-archive","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.0"}],"ecosystem":"Go","package":"github.com/moby/go-archive","purl":"pkg:golang/github.com/moby/go-archive","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"29.7.0"}],"ecosystem":"Bitnami","package":"docker-cli","purl":"pkg:bitnami/docker-cli","source":"bitnami"}],"references":[{"url":"https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://docs.docker.com/desktop/release-notes/#4860","tags":["release-notes","web"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/docker/sbx-releases/releases/tag/v0.38.0","tags":["release-notes","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://docs.docker.com/engine/release-notes/29/#2970","tags":["release-notes","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/docker/cli/releases/tag/v29.7.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/docker/compose/releases/tag/v5.4.0","tags":["release-notes","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/moby/go-archive/releases/tag/v0.3.0","tags":["patch","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/masasron/CopyEscape-CVE-2026-17106","tags":["exploit","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/moby/moby/issues/52948","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/moby/go-archive","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/moby/moby/releases/tag/docker-v29.7.0","tags":["web"],"sources":["ghsa","go"]},{"url":"https://www.imperva.com/blog/copyescape-taking-over-docker-hosts-with-docker-cp","tags":["web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-17106","tags":["web"],"sources":["bitnami"]}],"credits":["Ron Masas (Imperva) and other independent reports"],"assigner":"Docker","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-08-18T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-17106","url":"https://www.cve.org/CVERecord?id=CVE-2026-17106","licence":"CVE Terms of Use","modified":"2026-08-19T03:56:16.526Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hfg8-hc9c-6c3h","url":"https://github.com/advisories/GHSA-hfg8-hc9c-6c3h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:53.613Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6253","url":"https://pkg.go.dev/vuln/GO-2026-6253","licence":"CC-BY-4.0","modified":"2026-09-01T21:56:10.665Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-17106","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-17106","licence":"Public domain","modified":"2026-08-28T15:29:44.967Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DOCKER-CLI-2026-17106","url":"https://osv.dev/vulnerability/BIT-DOCKER-CLI-2026-17106","licence":"Apache-2.0","modified":"2026-08-24T08:25:33.752Z"}],"updatedAt":"2026-11-25T22:59:33.550Z","epss":{"score":0.00472,"percentile":0.42428,"date":"2026-12-01T12:00:22.000Z"}}