CVE-2026-17106

Tar extraction in moby/go-archive can write outside the destination directory via link following

Published Aug 18, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Workaround

Only extract trusted archives.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-hfg8-hc9c-6c3h moby/go-archive: Crafted tar archive can write outside the extraction directory
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Docker docker Cli
Docker docker Compose
Docker docker Engine
Docker sandboxes
Moby
Moby go-archive
Vendors & Products Docker docker Cli
Docker docker Compose
Docker docker Engine
Docker sandboxes
Moby
Moby go-archive
Type Values Removed Values Added
References
Metrics ssvc

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

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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Docker
Published
Updated
Aug 19, 2026, 3:56 AM
Reserved
Jul 24, 2026, 3:24 PM
Status
Awaiting Analysis
Published
Aug 18, 2026, 7:16 PM
Modified
Aug 28, 2026, 3:29 PM
Severity
Important
Public date
Aug 18, 2026, 6:35 PM