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.
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
Vendor Workaround
Only extract trusted archives.
Tracking
Sign in to view the affected projects.
Advisories
No advisories yet.
References
History
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
|
Status: PUBLISHED
Assigner: Docker
Published:
Updated: 2026-08-18T18:35:13.465Z
Reserved: 2026-07-24T15:24:25.317Z
Link: CVE-2026-17106
No data.
No data.
No data.
OpenCVE Enrichment
No data.
Weaknesses