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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.47% (percentile 33, 2026-11-28)
- **CWE:** CWE-59
- **Aliases:** BIT-docker-cli-2026-17106, GHSA-hfg8-hc9c-6c3h, GO-2026-6253
- **Published:** 2026-08-18T18:35:13.465Z
- **Modified:** 2026-09-10T03:50:53.613Z

## Who should check

- Projects that depend on Go package github.com/moby/go-archive (\< 0.3.0)
- Anyone running moby go-archive \< 0.3.0
- Anyone running Docker Sandboxes \< 0.38.0
- Anyone running Docker Desktop \< 4.86.0
- Anyone running Docker Engine \< 29.7.0
- Anyone running Docker CLI \< 29.7.0
- Anyone running Docker Compose \< 5.4.0

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

## Affected and fixed versions

- Go `github.com/moby/go-archive`: affected \< 0.3.0; fixed 0.3.0 (osv)
- moby go-archive: \< 0.3.0 (cvelist)
- Docker Sandboxes: \< 0.38.0 (cvelist)
- Docker Desktop: \< 4.86.0 (cvelist)
- Docker Engine: \< 29.7.0 (cvelist)
- Docker CLI: \< 29.7.0 (cvelist)
- Docker Compose: \< 5.4.0 (cvelist)

## Mitigation

- Upgrade github.com/moby/go-archive to 0.3.0 or later.
- Vendor workaround: Only extract trusted archives.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-17106. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-17106.md
Affected: github.com/moby/go-archive < 0.3.0
Fixed in: 0.3.0

Steps:
1. Search this machine and project for github.com/moby/go-archive (Go), moby go-archive, Docker Sandboxes, Docker Desktop, Docker Engine, Docker CLI: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-17106 being exploited?

There is no confirmed exploitation: CVE-2026-17106 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-17106?

High: CVSS 7.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-17106?

github.com/moby/go-archive \< 0.3.0.

### Is there a fix for CVE-2026-17106?

Yes. Fixed in 0.3.0. Upgrade github.com/moby/go-archive to 0.3.0 or later. Vendor workaround: Only extract trusted archives.

### How do I check if I'm affected by CVE-2026-17106?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h>
- patch: <https://github.com/moby/go-archive/releases/tag/v0.3.0>
- exploit: <https://github.com/masasron/CopyEscape-CVE-2026-17106>
- other: <https://docs.docker.com/desktop/release-notes/#4860>
- other: <https://github.com/docker/sbx-releases/releases/tag/v0.38.0>
- other: <https://docs.docker.com/engine/release-notes/29/#2970>
- other: <https://github.com/docker/cli/releases/tag/v29.7.0>
- other: <https://github.com/docker/compose/releases/tag/v5.4.0>
- other: <https://github.com/moby/moby/issues/52948>
- other: <https://github.com/bikini/exploitarium/tree/main/docker-cp-copyout-destination-escape>
- other: <https://github.com/moby/go-archive>
- other: <https://github.com/moby/moby/releases/tag/docker-v29.7.0>
- other: <https://www.imperva.com/blog/copyescape-taking-over-docker-hosts-with-docker-cp>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-17106>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hfg8-hc9c-6c3h> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-6253> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-17106> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-17106>
