Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconPush malicious image to registry
-
DeliveryOperator runs container with volume mount
-
ExploitSpawn tight symlink-swap loop on mount destination
-
InstallOperator initiates docker cp or archive API call
-
C2Win race between mountpoint creation and mount() syscall
-
ExecuteDaemon bind-mounts volume onto attacker-chosen host path
-
ImpactOverwrite host files or mask critical paths
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
|
| Exploitation Conditions | Exploitation requires all of the following concrete conditions, drawn directly from the advisory: (1) the target container must be configured with at least one volume mount - containers without volumes are explicitly not affected; (2) the attacker must already have code execution inside that container with sufficient privileges to create, delete, and replace filesystem entries (including symlinks) at the volume mount destination path or one of its parent components, fast enough to win a kernel race against the daemon; and (3) an operator on the host must initiate |
| Impact | The CVSS 3.1 vector AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:H (7.2 High) accurately conveys a constrained but powerful primitive: local attack vector (code must run inside a container), high complexity (winning a kernel race against the daemon), low privileges, but user interaction required (an operator must run |
| Exploit ScenarioDerived | In a multi-tenant build or CI environment, an attacker pushes a malicious image that is run with at least one named volume; once the container is live, a tight loop inside it repeatedly creates the expected mount destination path and swaps it for a symlink pointing at a sensitive host path such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 18, 2026
Symlink-based race condition in Docker Engine's docker cp implementation allows a malicious container with at least one volume mount to redirect a bind mount to an arbitrary host filesystem path, enabling host file overwrite or temporary denial of service. The flaw affects Moby/Docker through 28.5.2 and is fixed only in the Moby v2 line (2.0.0-beta.14); no public exploit identified at time of analysis. Exploitation requires an operator-initiated docker cp or archive API call against the malicious container, which constrains real-world abuse to environments where untrusted containers receive file copies.
RemediationAI
Upstream fix available (commit/release on the v2 line); the only vendor-released patched version identified is github.com/moby/moby/v2 2.0.0-beta.14, so operators on the GA 1.x/28.x Docker Engine line should track the Moby advisory GHSA-rg2x-37c3-w2rh (https://github.com/moby/moby/security/advisories/GHSA-rg2x-37c3-w2rh) for a backported release before upgrading production hosts. Until a stable patch is available, restrict use of docker cp against untrusted or long-running containers, run only images from trusted sources, and deploy an authorization plugin (AuthZ) that blocks or gates the PUT /containers/{id}/archive and HEAD /containers/{id}/archive endpoints - note that AuthZ plugins add operational overhead and can break tooling such as IDE remote-container workflows or CI pipelines that rely on archive APIs. Operators of multi-tenant or shared Docker hosts should additionally avoid scripting automated docker cp flows that touch containers running untrusted workloads, since user-interaction is the gating step that triggers the race.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 6 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability lives in the Moby/Docker daemon (github.com/moby/moby, github.com/docker/docker, and the new github.com/moby/moby/v2 module) inside the docker cp archive code path, which constructs a private mount namespace and bind-mounts container volumes into a transient filesystem view before reading or writing files. The classic TOCTOU pattern manifests because the daemon creates the mount destination inside the container rootfs and then resolves it to an absolute host path before invoking the mount(2) syscall - and mount(2) follows symlinks on its target argument. This is precisely CWE-61 (UNIX Symbolic Link Following): a privileged process operates on a path under control of an unprivileged process, leaving a window in which the container can swap the target (or any parent component) for a symlink pointing anywhere on the host, including sensitive locations such as /etc, /root, or systemd unit directories.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
Summary
A race condition during docker cp mount setup allows a malicious container to redirect a bind mount target to an arbitrary host path, potentially overwriting host files or causing denial of service.
Details
When copying files into a container, the daemon sets up a temporary filesystem view by bind-mounting volumes into a private mount namespace. During this setup, the mount destination is created inside the container root and then a bind mount is attached using the container-relative path resolved to an absolute host path.
Between mountpoint creation and the mount() syscall, a process running inside the container can replace the destination (or a parent path component) with a symlink pointing to an arbitrary location on the host. The mount() syscall follows the symlink, causing the volume to be bind-mounted onto an arbitrary host path instead of the intended container path.
Impact
A malicious container can redirect a volume bind mount to an arbitrary host path. The impact depends on the volume content and mount options:
- If the volume is writable, arbitrary host files at the redirected path could be overwritten with the volume's contents.
- If the volume is read-only, the host path is masked by the mount for the duration of the operation, causing denial of service.
- In all cases the mount is temporary (torn down after the
docker cpcompletes), but the effects of any writes persist.
Conditions for exploitation
- A container must have at least one volume mount.
- A process inside the container must be able to rapidly create and swap symlinks at the volume mount destination path.
- An operator must initiate a
docker cpinto that container, or call thePUT /containers/{id}/archiveorHEAD /containers/{id}/archiveAPI endpoints.
Not affected
- Containers that do not have volume mounts are not affected, as the race occurs during volume bind-mount setup.
Workarounds
- Only run containers from trusted images.
- Avoid using
docker cpwith untrusted running containers. - Use authorization plugins to restrict access to the archive API endpoints (
PUT /containers/{id}/archive,HEAD /containers/{id}/archive).
Executive ViewAI
A symlink-based race condition in Docker Engine (through version 28.5.2) permits containers with volume mounts to redirect bind-mount targets to arbitrary host filesystem paths during docker cp operations, enabling host file overwrite or temporary denial of service. Organizations running untrusted containers or multi-tenant Docker environments are at risk of host system compromise. Exploitation requires an operator-initiated file copy operation, limiting real-world attack surface but creating significant risk in environments where file transfers between hosts and containers are routine.
No vendor-released patch for Docker Engine through 28.5.2. Interim mitigations: (1) Disable or restrict docker cp/archive API access on containers with untrusted origins; (2) Limit volume mounts to trusted containers only; (3) Configure read-only volume mounts where feasible; (4) Implement mandatory approval workflows for docker cp operations; (5) Monitor Docker daemon logs for suspicious copy operations. Upgrade path: Vendor-released patch available in Moby 2.0.0-beta.14 (v2 line).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-36528
GHSA-rg2x-37c3-w2rh
NVD
CVE.org
EPSS
VulDB
Exploit-DB