Moby go-archive
Tar extraction in moby/go-archive can write outside the destination directory via link following
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.3.0
Fixed in 0.3.0
- < 0.38.0
Fixed in 0.38.0
- < 4.86.0
Fixed in 4.86.0
- < 29.7.0
Fixed in 29.7.0
- < 29.7.0
Fixed in 29.7.0
- < 5.4.0
Fixed in 5.4.0
Mitigation
Upgrade go-archive to 0.3.0 or later.
Upgrade Docker Sandboxes to 0.38.0 or later.
Upgrade Docker Desktop to 4.86.0 or later.
Upgrade Docker Engine to 29.7.0 or later.
Upgrade Docker CLI to 29.7.0 or later.
Upgrade Docker Compose to 5.4.0 or later.
Workaround
Only extract trusted archives.
References
- Vendor advisory github.com/moby/go-archive/security/advisories…
- Release notes docs.docker.com/desktop/release-notes
- Release notes github.com/docker/sbx-releases/releases/tag/v0…
4 more
- Release notes docs.docker.com/engine/release-notes/29
- Release notes github.com/docker/cli/releases/tag/v29.7.0
- Release notes github.com/docker/compose/releases/tag/v5.4.0
- Patch github.com/moby/go-archive/releases/tag/v0.3.0
Timeline
Days relative to CVE publicationFirst public PoC 8.9 days before publication; not in CISA KEV. First PoC: masasron/CopyEscape-CVE-2026-17106 (created 9 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.4 PoCs
PoCs 4
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| masasron/CopyEscape-CVE-2026-17106 | 9 Aug 2026 −8.9 d | backfilled | 23 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| HackSpeak/CVE-2026-17106 | 11 Aug 2026 −7.3 d | backfilled | 1 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| 686f6c61/POC-CopyEscape-CVE-2026-17106 | 12 Aug 2026 −6.1 d | backfilled | 1 | PoC |
| CompleteTech-Security/copyescape-check | 23 Oct 2026 +66 d | 14 Nov 2026 | 0 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| PoC Index | https://github.com/masasron/CopyEscape-CVE-2026-17106/blob/5267d7d2c138f8d76f0ef72463541f74d121d275/macos/demo-macos.sh | unknown | 14 Nov 2026 |