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.

Project Subscriptions

Vendors Products
Desktop Subscribe
Docker Sandboxes Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hfg8-hc9c-6c3h moby/go-archive: Crafted tar archive can write outside the extraction directory
Fixes

Solution

No solution given by the vendor.


Workaround

Only extract trusted archives.

History

Tue, 18 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
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.
Title Tar extraction in moby/go-archive can write outside the destination directory via link following
First Time appeared Docker
Docker desktop
Docker docker Sandboxes
Weaknesses CWE-59
CPEs cpe:2.3:a:docker:desktop:*:*:*:*:*:*:*:*
cpe:2.3:a:docker:docker_sandboxes:*:*:*:*:*:*:*:*
Vendors & Products Docker
Docker desktop
Docker docker Sandboxes
References
Metrics cvssV4_0

{'score': 7.1, 'vector': '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: Docker

Published:

Updated: 2026-08-18T19:05:12.960Z

Reserved: 2026-07-24T15:24:25.317Z

Link: CVE-2026-17106

cve-icon Vulnrichment

Updated: 2026-08-18T18:51:08.466Z

cve-icon NVD

Status : Received

Published: 2026-08-18T19:16:45.030

Modified: 2026-08-18T20:17:12.990

Link: CVE-2026-17106

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:30:04Z

Weaknesses