CVE-2026-17106
Tar extraction in moby/go-archive can write outside the destination directory via link following
Check your servers for CVE-2026-17106
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-17106 affects go-archive, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.47%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 42.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 18 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-59 Improper Link Resolution Before File Access
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
go-archive
package
github.com/moby/go-archive |
affected before 0.3.0
Other versions: unaffected
|
| Docker Sandboxes |
affected before 0.38.0
Other versions: unaffected
|
| Docker Desktop |
affected before 4.86.0
Other versions: unaffected
|
| Docker Engine |
affected before 29.7.0
Other versions: unaffected
|
| Docker CLI |
affected before 29.7.0
Other versions: unaffected
|
| Docker Compose |
affected before 5.4.0
Other versions: unaffected
|
Is my server affected?
Find the installed version of go-archive and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i go-archive
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-17106 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-17106RHEL, Rocky, Alma, Fedora
rpm -q go-archive
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-17106Alpine
apk list --installed | grep -i go-archiveWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-17106
trivy image --scanners vuln IMAGE | grep CVE-2026-17106
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/moby/go-archive/security/advisories/GHSA-hfg8-hc9c-6c3h github.com · vendor advisory
Patches and release notes
- https://docs.docker.com/desktop/release-notes/#4860 docs.docker.com · release notes
- https://github.com/docker/sbx-releases/releases/tag/v0.38.0 github.com · release notes
- https://docs.docker.com/engine/release-notes/29/#2970 docs.docker.com · release notes
- https://github.com/docker/cli/releases/tag/v29.7.0 github.com · release notes
- https://github.com/docker/compose/releases/tag/v5.4.0 github.com · release notes
- https://github.com/moby/go-archive/releases/tag/v0.3.0 github.com · patch
Exploits and proof of concept
- https://github.com/masasron/CopyEscape-CVE-2026-17106 github.com · exploit
Source: the record CVE-2026-17106 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse