Exploit database

Vulnerability

CVE-2026-17106

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

Vulnerability details

Score
7.1
Severity
high

CVSS 4.0 · Docker

Vector string

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

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.

CVE Program

Exploit source choices

4 sources
masasron/copyescape-cve-2026-17106
GH-38af0d63f2c6e9917c0f73e4fcd61f1cGitHubUnofficial GitHub sourcePreferred

PoC repository for the blog post CopyEscape: Taking Over Docker Hosts with docker cp

2026-08-0911 files · 24 stars
686f6c61/poc-copyescape-cve-2026-17106
GH-ef4e5102d98da07fbb286eb45ffe6973GitHubUnofficial GitHub source

PoC funcional de CVE-2026-17106 (CopyEscape): carrera TOCTOU en docker cp que permite escritura arbitraria en el host Docker. Laboratorio Docker + monitor inotify + LD_PRELOAD. Variante macOS inocua y Linux destructiva.

2026-08-128 files · 1 stars
hackspeak/cve-2026-17106
GH-16659217363cc922859443b99c9c70a2GitHubUnofficial GitHub source

CopyEscape (CVE-2026-17106) docker cp container-to-host arbitrary file write PoC mirror — Imperva Ron Masas, MIT; for authorized security testing

2026-08-1112 files · 1 stars
completetech-security/copyescape-check
GH-07c1343c6717ff96b182eb39f69bab94GitHubUnofficial GitHub source

Offline Docker CopyEscape evidence checker for CVE-2026-17106. Docker version and build-configuration evidence. Standalone Python; JSON/CSV/HTML reports; no exploit payloads.

2026-10-2326 files · 0 stars