Tar extraction in moby/go-archive can write outside the destination directory via link following
Summary
| CVE | CVE-2026-17106 |
|---|---|
| State | PUBLISHED |
| Assigner | Docker |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-18 19:16:45 UTC |
| Updated | 2026-08-19 04:16:57 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 7.1 HIGH from [email protected]
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
Problem Types: CWE-59 | CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 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/E:X/C... |
| 4.0 | CNA | CVSS | 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 |
CVSS v4.0 Breakdown
Attack Vector
LocalAttack Complexity
LowAttack Requirements
PresentPrivileges Required
NoneUser Interaction
ActiveConfidentiality
HighIntegrity
HighAvailability
HighSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS: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
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Moby | Go-archive | affected 0.3.0 semver | Not specified |
| CNA | Docker | Docker Sandboxes | affected 0.38.0 semver | MacOS, Linux, Windows |
| CNA | Docker | Docker Desktop | affected 4.86.0 semver | MacOS, Linux, Windows |
| CNA | Docker | Docker Engine | affected 29.7.0 semver | MacOS, Linux, Windows |
| CNA | Docker | Docker CLI | affected 29.7.0 semver | MacOS, Linux, Windows |
| CNA | Docker | Docker Compose | affected 5.4.0 semver | MacOS, Linux, Windows |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/moby/go-archive/releases/tag/v0.3.0 | [email protected] | github.com | |
| docs.docker.com/desktop/release-notes | [email protected] | docs.docker.com | |
| github.com/masasron/CopyEscape-CVE-2026-17106 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | |
| github.com/docker/sbx-releases/releases/tag/v0.38.0 | [email protected] | github.com | |
| github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h | [email protected] | github.com | |
| docs.docker.com/engine/release-notes/29 | [email protected] | docs.docker.com | |
| github.com/docker/compose/releases/tag/v5.4.0 | [email protected] | github.com | |
| github.com/docker/cli/releases/tag/v29.7.0 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Ron Masas (Imperva) and other independent reports (en)
Additional Advisory Data
Workarounds
CNA: Only extract trusted archives.
There are currently no legacy QID mappings associated with this CVE.