# CVE-2026-17106: Tar extraction in moby/go-archive can write outside the destination directory via link following

- Severity: High 7.1 (CVSS:4.0, scored by Docker) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-08-18T18:35:13.465Z
- Modified: 2026-09-10T03:50:53.613Z
- Also known as: GHSA-hfg8-hc9c-6c3h, BIT-DOCKER-CLI-2026-17106, GO-2026-6253
- Related: CGA-hj86-cwfh-8vvv
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Docker

## 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.

(As written by CVE List.)

## Affected

- github.com/moby/go-archive: before 0.3.0
- Docker Docker Sandboxes: before 0.38.0
- Docker Docker Desktop: before 4.86.0
- Docker Docker Engine: before 29.7.0
- Docker Docker CLI: before 29.7.0
- Docker Docker Compose: before 5.4.0
- github.com/moby/go-archive (Go): before 0.3.0
- docker-cli (Bitnami): before 29.7.0

## Every score

- Docker: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `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`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/masasron/CopyEscape-CVE-2026-17106> (exploit, web)
- <https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape> (exploit, web)
- <https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h> (advisory, vendor-advisory, web)
- <https://docs.docker.com/desktop/release-notes/#4860> (release-notes, web)
- <https://github.com/docker/sbx-releases/releases/tag/v0.38.0> (release-notes, web)
- <https://docs.docker.com/engine/release-notes/29/#2970> (release-notes, web)
- <https://github.com/docker/cli/releases/tag/v29.7.0> (release-notes, web)
- <https://github.com/docker/compose/releases/tag/v5.4.0> (release-notes, web)
- <https://github.com/moby/go-archive/releases/tag/v0.3.0> (patch, web)
- <https://github.com/moby/moby/issues/52948> (web)
- <https://github.com/moby/go-archive> (package)
- <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)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-17106> (web)

## Sources

- CVE List: [CVE-2026-17106](https://www.cve.org/CVERecord?id=CVE-2026-17106), CVE Terms of Use, modified 2026-08-19
- GitHub Advisory Database: [GHSA-hfg8-hc9c-6c3h](https://github.com/advisories/GHSA-hfg8-hc9c-6c3h), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6253](https://pkg.go.dev/vuln/GO-2026-6253), CC-BY-4.0, modified 2026-09-01
- NVD: [CVE-2026-17106](https://nvd.nist.gov/vuln/detail/CVE-2026-17106), Public domain, modified 2026-08-28
- Bitnami Vulnerability Database: [BIT-DOCKER-CLI-2026-17106](https://osv.dev/vulnerability/BIT-DOCKER-CLI-2026-17106), Apache-2.0, modified 2026-08-24

---

Page: https://cve.day/CVE-2026-17106 · Whole record: https://cve.day/CVE-2026-17106.json · Rebuilt by cve.day 2026-11-25T22:59:33.550Z
