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.

Analysis

AI-generated

Technical impact

The vulnerability involves the tar extraction routines in moby/go-archive. The extractor does not confine filesystem operations to the destination directory. It uses lexical string checks to decide where each archive entry lands, then performs filesystem operations on a path that is resolved by the OS, allowing links in the archive to be followed outside the destination directory. An attacker who controls the archive contents can create or overwrite files at arbitrary paths writable by the extracting process. This flaw corresponds to the Common Weakness Enumeration ID 59 – path traversal.

Affected Systems

Affected products include the Docker CLI, Docker Compose, Docker Desktop, Docker Engine, Docker Sandboxes, and the moby/go-archive library underlying all these components. At the time of the advisory, versions 29.7.0 of the CLI, 5.4.0 of Compose, 48.60 of Docker Desktop, 29.7.0 of Docker Engine, 0.38.0 of Docker Sandboxes, and 0.3.0 of go-archive were known to contain the vulnerable code. These releases are referenced in the official Docker release notes and GitHub tags linked in the advisory.

Risk and Exploitability

The CVSS score of 7.1 indicates a medium‑to‑high severity with potential for privileged data modification. The EPSS score is not available, and the vulnerability is not currently listed in the CISA KEV catalog, suggesting no documented exploitation at this time. Nonetheless, the flaw can be exploited by supplying a crafted tar archive to any Docker component that performs extraction. Because the extractor follows symbolic links, an attacker with access to such a process can write or replace files in arbitrary directories writable by the service, potentially enabling privilege escalation or service disruption. The likely attack vector is local or remote exploits that can deliver a malicious archive to the target environment.

Remediation

Vendor Workaround

Only extract trusted archives.


OpenCVE Recommended Actions

  • Upgrade Docker CLI to version 29.7.0 or later.
  • Upgrade Docker Compose to version 5.4.0 or later.
  • Upgrade Docker Desktop to version 48.60 or later.
  • Upgrade Docker Engine to version 29.7.0 or later.
  • Upgrade Docker Sandboxes to version 0.38.0 or later.
  • Upgrade the go-archive library to version 0.3.0 or later.
  • Only extract archives that are trusted and have been verified to contain safe contents.

Generated by OpenCVE AI on August 18, 2026 at 19:17 UTC.

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
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

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