{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-17106","id":"CVE-2026-17106","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 followe","descriptionLong":"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.","published":"2026-08-18T18:35:13.465Z","updated":"2026-11-16T18:12:20.993153550Z","reserved":"2026-07-24T15:24:25.317Z","status":"Awaiting Analysis","rejected":false,"assigner":"Docker","metric":{"version":"4.0","score":7.1,"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","source":"Docker"},"metrics":[{"version":"4.0","score":7.1,"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","source":"Docker"},{"version":"4.0","score":7.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"docker.com"},{"version":"4.0","score":null,"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":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","source":"GitHub"}],"rating":"high","products":["moby go-archive","Docker Sandboxes","Docker Desktop","Docker Engine","Docker CLI","Docker Compose"],"affectedProducts":[{"vendor":"moby","product":"go-archive","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.3.0","versionType":"semver"}],"platforms":[]},{"vendor":"Docker","product":"Docker Sandboxes","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.38.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]},{"vendor":"Docker","product":"Docker Desktop","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.86.0","versionType":"semver"}],"platforms":["MacOS","Linux","Windows"]},{"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"]}],"packages":[{"ecosystem":"Go","name":"github.com/moby/go-archive","purl":"pkg:golang/github.com/moby/go-archive","ranges":["<0.3.0"],"fixed":["0.3.0"],"advisory":"GHSA-hfg8-hc9c-6c3h"}],"cwes":["CWE-59","CWE-22"],"aliases":["BIT-docker-cli-2026-17106","GHSA-hfg8-hc9c-6c3h","GO-2026-6253"],"references":[{"url":"https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h","tags":["vendor-advisory","advisory","web"]},{"url":"https://docs.docker.com/desktop/release-notes/#4860","tags":["release-notes","advisory","web"]},{"url":"https://github.com/docker/sbx-releases/releases/tag/v0.38.0","tags":["release-notes","advisory"]},{"url":"https://docs.docker.com/engine/release-notes/29/#2970","tags":["release-notes","advisory"]},{"url":"https://github.com/docker/cli/releases/tag/v29.7.0","tags":["release-notes","advisory","web"]},{"url":"https://github.com/docker/compose/releases/tag/v5.4.0","tags":["release-notes","advisory"]},{"url":"https://github.com/moby/go-archive/releases/tag/v0.3.0","tags":["patch","fix"]},{"url":"https://github.com/masasron/CopyEscape-CVE-2026-17106","tags":["exploit","evidence"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/17xxx/CVE-2026-17106.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-17106","tags":["advisory"]},{"url":"https://github.com/moby/moby/issues/52948","tags":["web"]},{"url":"https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape","tags":["web"]},{"url":"https://github.com/moby/go-archive","tags":["package"]},{"url":"https://github.com/moby/moby/releases/tag/docker-v29.7.0","tags":["web"]},{"url":"https://www.imperva.com/blog/copyescape-taking-over-docker-hosts-with-docker-cp","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.0044,"epssPercentile":0.39017,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-17106","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-17106","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-17106","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hfg8-hc9c-6c3h","ok":true,"note":"GHSA-hfg8-hc9c-6c3h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-17106","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["docker"],"critical":[],"attention":null}