Cybersecurity news

Jessica Doner

Back to the list

Docker CopyEscape CVE-2026-17106 Lets Malicious Containers Overwrite Host Files

GBHackers,

A Docker flaw lets malicious containers overwrite host files when users run the copy command to retrieve data from a container.

Vulnerabilities and patches

Overview

A critical vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend in Docker called CopyEscape allows a malicious container to overwrite files on the host machine when a user runs the docker cp command. This issue affects the process of copying data from a container to the host, where Docker packages the content as a tar archive and the CLI extracts it locally. An attacker can manipulate the archive by using a race conditionA timing bug where two operations run at once and their order changes the result unexpectedly to replace a directory with a symbolic linkA special file system pointer that redirects any program opening it to another file or folder path, causing the archive to describe the path as both a symlinkA special file on disk that points to another file or folder path by name and a directory. During extraction, the Docker CLI fails to restrict operations to the designated destination, allowing a crafted symlink to point outside the safe output directory. This flaw lets an attacker write data to unintended locations on the host system, such as shellThe command-line interpreter program that accepts text commands and runs them on an operating system startup files, SSHAn encrypted network protocol that administrators and developers use to log in to remote servers and run commands settings, or source codeThe human-readable programming instructions written by developers before they are compiled into a runnable program. A developer copying files from an attacker-controlled container could inadvertently overwrite important system files or create persistence mechanismsThe tricks an attacker uses to keep access to a computer after a reboot or password change on their machine.

Terms in this story

vulnerability
A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
race condition
A timing bug where two operations run at once and their order changes the result unexpectedly. An attacker can exploit a race condition by sending two requests at the exact same instant, such as withdrawing the same balance twice before the server updates the account. Security+ objective 2.3 lists the term
symbolic link
A special file system pointer that redirects any program opening it to another file or folder path. Attackers exploit symbolic link bugs by replacing a temporary file a privileged program is about to write to with a pointer to a sensitive system file.
symlink
A special file on disk that points to another file or folder path by name. Local privilege escalation exploits often plant a symlink in a temporary folder so a high-privilege system service is tricked into overwriting a protected system file.
shell
The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
SSH
An encrypted network protocol that administrators and developers use to log in to remote servers and run commands. Attackers constantly scan the internet for servers with open SSH ports and weak passwords, while defenders protect SSH access with cryptographic keys instead of passwords.
source code
The human-readable programming instructions written by developers before they are compiled into a runnable program. When attackers steal a company's private source code from a repository, they can study it to find hidden vulnerabilities or leaked API keys.
persistence mechanisms
The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.
CVE
The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
Containers
A lightweight software package that runs an application isolated from other programs on the same host kernel. Cloud teams package web services inside containers so they start in seconds, and security stories warn about container escape bugs that let an attacker break out onto the host server.
Command Line Interface
A text-based terminal interface where users type commands instead of clicking buttons in a graphical window. Software teams and administrators manage cloud servers and code repositories through a CLI because text commands are fast and easy to automate in scripts.
Red Team
An exercise where security specialists mimic a real adversary to test an organization's people, networks, and detection. Unlike a standard scan that checks one app for bugs, red teaming simulates a full campaign with phishing, lateral movement, and privilege escalation to see how the defending team responds. Security+ objective 5.5 lists the term

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.

Read the full article on GBHackers (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related