{"id":"CVE-2026-17106","state":"PUBLISHED","title":"Tar extraction in moby/go-archive can write outside the destination directory via link following","description":"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.","publishedAt":"2026-08-18T18:35:13.465Z","updatedAt":"2026-08-19T03:56:16.526Z","severity":{"score":7.1,"label":"High","version":"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","source":"Docker"},"assigner":"Docker","products":["moby go-archive","Docker Docker Sandboxes","Docker Docker Desktop","Docker Docker Engine","Docker Docker CLI","Docker Docker Compose"],"affected":[{"vendor":"moby","product":"go-archive","packageName":"github.com/moby/go-archive","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.3.0","versionType":"semver"}]},{"vendor":"Docker","product":"Docker Sandboxes","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.38.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"],"cpes":["cpe:2.3:a:docker:docker_sandboxes:*:*:*:*:*:*:*:*"]},{"vendor":"Docker","product":"Docker Desktop","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.86.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"],"cpes":["cpe:2.3:a:docker:desktop:*:*:*:*:*:*:*:*"]},{"vendor":"Docker","product":"Docker Engine","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"29.7.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]},{"vendor":"Docker","product":"Docker CLI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"29.7.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]},{"vendor":"Docker","product":"Docker Compose","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"5.4.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]}],"references":["https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h","https://docs.docker.com/desktop/release-notes/#4860","https://github.com/docker/sbx-releases/releases/tag/v0.38.0","https://docs.docker.com/engine/release-notes/29/#2970","https://github.com/docker/cli/releases/tag/v29.7.0","https://github.com/docker/compose/releases/tag/v5.4.0","https://github.com/moby/go-archive/releases/tag/v0.3.0","https://github.com/masasron/CopyEscape-CVE-2026-17106"],"weaknesses":["CWE-59"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/17xxx/CVE-2026-17106.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-17106","state":"PUBLISHED","datePublished":"2026-08-18T18:35:13.465Z","dateUpdated":"2026-08-19T03:56:16.526Z","assignerShortName":"Docker","assignerOrgId":"686469e6-3ff6-451b-ab8b-cf5b9e89401e","dateReserved":"2026-07-24T15:24:25.317Z"},"containers":{"cna":{"title":"Tar extraction in moby/go-archive can write outside the destination directory via link following","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"moby","product":"go-archive","packageName":"github.com/moby/go-archive","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.3.0","versionType":"semver"}]},{"vendor":"Docker","product":"Docker Sandboxes","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.38.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"],"cpes":["cpe:2.3:a:docker:docker_sandboxes:*:*:*:*:*:*:*:*"]},{"vendor":"Docker","product":"Docker Desktop","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.86.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"],"cpes":["cpe:2.3:a:docker:desktop:*:*:*:*:*:*:*:*"]},{"vendor":"Docker","product":"Docker Engine","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"29.7.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]},{"vendor":"Docker","product":"Docker CLI","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"29.7.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]},{"vendor":"Docker","product":"Docker Compose","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"5.4.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]}],"references":[{"url":"https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h","tags":["vendor-advisory"]},{"url":"https://docs.docker.com/desktop/release-notes/#4860","tags":["release-notes"]},{"url":"https://github.com/docker/sbx-releases/releases/tag/v0.38.0","tags":["release-notes"]},{"url":"https://docs.docker.com/engine/release-notes/29/#2970","tags":["release-notes"]},{"url":"https://github.com/docker/cli/releases/tag/v29.7.0","tags":["release-notes"]},{"url":"https://github.com/docker/compose/releases/tag/v5.4.0","tags":["release-notes"]},{"url":"https://github.com/moby/go-archive/releases/tag/v0.3.0","tags":["patch"]}],"metrics":[{"cvssV4_0":{"version":"4.0","vectorString":"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","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","exploitMaturity":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Docker","orgId":"686469e6-3ff6-451b-ab8b-cf5b9e89401e","dateUpdated":"2026-08-18T18:35:13.465Z"},"credits":[{"lang":"en","type":"finder","value":"Ron Masas (Imperva) and other independent reports"}],"source":{"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Only extract trusted archives."}],"value":"Only extract trusted archives."}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/masasron/CopyEscape-CVE-2026-17106","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-18T00:00:00+00:00","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-17106"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-19T03:56:16.526Z"}}]}}}