Docker CopyEscape CVE-2026-17106 Lets Malicious Containers Overwrite Host Files
Docker patches CopyEscape (CVE-2026-17106), which lets malicious containers overwrite host files during docker cp via a symlink race, potentially enabling root code execution.
Imperva's Red Team disclosed CVE-2026-17106 (CopyEscape), a critical Docker vulnerability in the docker cp copy-out path combining a filesystem race condition with unrestricted archive extraction, allowing a malicious container to create or overwrite files on the host. A proof of concept replaced /usr/bin/runc with an attacker-controlled script, converting arbitrary file overwrite into root-level code execution. The flaw also affects Docker Sandboxes' sbx cp command, raising risks in AI agent and coding workflows that retrieve artifacts from untrusted sandboxes. Users should upgrade to Docker Engine and CLI 29.7.2, Docker Desktop 4.86.0, or Sandboxes 0.38.0 or later.
- Race condition plus symlink handling in docker cp enables arbitrary host file overwrite
- Imperva PoC replaced /usr/bin/runc to achieve root code execution on Linux
- Docker Sandboxes sbx cp also vulnerable, risking AI agent artifact retrieval workflows
- Patches in Docker Engine/CLI 29.7.2, Desktop 4.86.0, Sandboxes 0.38.0
- CVEs
- CVE-2026-17106
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-17106 | Path Traversal via Link Following in Moby go-archive Tar Extraction | 7.1 | <1% |
From the original article
3 min read at gbhackers.com
A critical Docker vulnerability tracked as CVE-2026-17106, also known as CopyEscape, could allow a malicious container to overwrite files on the host machine when a user runs the `docker cp` command. This vulnerability affects copy-out operations, where Docker retrieves data from a container and extracts it onto the system running the Docker Command Line Interface […]
By Divya · gbhackers.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.