Tar extraction in moby/go-archive can write outside the destination directory via link following
CVE-2026-17106Published 18 Aug 2026, 18:35 UTC
Real-world risk
1.5/ 10Low
Routine
If the vulnerable configuration applies to you: 3.3
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from Docker)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Docker EngineUbiquitous | < 29.7.0 | 29.7.0 |
| Docker DesktopWidespread | < 4.86.0 | 4.86.0 |
| Docker CLINiche | < 29.7.0 | 29.7.0 |
| Docker SandboxesNiche | < 0.38.0 | 0.38.0 |
| composeNiche | < 5.4.0 | 5.4.0 |
| go-archiveNiche | < 0.3.0 | 0.3.0 |
What to do
Update to a fixed version: 29.7.0, 4.86.0, 0.38.0, 5.4.0, 0.3.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Public proof of concept on GitHub
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.5% chance of exploitation in 30 days (percentile 42), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.158
- Threat T3: Public proof of concept0.950
- 10 × impact 1 × prerequisites 0.1575 × threat 0.951.496
- Rounded to one decimal between 0.1 and 101.5
Exploitation and evidence timeline
- 18 Aug 2026 Published
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 1.5 (cvss fallback)
Weakness
CWE-59
References
- https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3hvendor-advisory
- https://docs.docker.com/desktop/release-notes/#4860release-notes
- https://github.com/docker/sbx-releases/releases/tag/v0.38.0release-notes
- https://docs.docker.com/engine/release-notes/29/#2970release-notes
- https://github.com/docker/cli/releases/tag/v29.7.0release-notes
- https://github.com/docker/compose/releases/tag/v5.4.0release-notes
- https://github.com/moby/go-archive/releases/tag/v0.3.0patch
- https://github.com/masasron/CopyEscape-CVE-2026-17106exploit
- CVE-2026-17106 on CVE.org