Skip to main content

Docker (Moby) CVE-2026-41568

| EUVDEUVD-2026-36527 MEDIUM
UNIX Symbolic Link (Symlink) Following (CWE-61)
2026-05-18 https://github.com/moby/moby GHSA-vp62-88p7-qqf5
6.1
CVSS 3.1 · Vendor: https://github.com/moby/moby
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker deploys malicious container with volume mount
  2. Delivery
    Container process enters tight symlink-swap loop at mount destination
  3. Exploit
    Operator runs docker cp or calls archive API against container
  4. Install
    Daemon resolves destination path via GetResourcePath within container root
  5. C2
    Race window opens between path resolution and createIfNotExists call
  6. Execute
    Attacker wins race: symlink swapped to target arbitrary host path
  7. Impact
    os.MkdirAll or os.OpenFile follows symlink, creates empty file or directory on host as root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling UNIX symlink resolution
Exploitation Conditions

Three specific conditions must all be satisfied simultaneously for exploitation. First, the targeted container must have at least one volume mount - containers without volume mounts are explicitly unaffected because the race occurs during bind-mount setup for those volumes. Second, a process inside the container must be capable of rapidly creating and swapping symlinks at a volume mount destination path - this requires attacker-controlled code executing inside the container (e.g., a compromised application, a malicious image, or a deliberately hostile workload). Third, an operator or automated system must actively invoke docker cp against that running container, or call the PUT /containers/{id}/archive or HEAD /containers/{id}/archive Docker API endpoints - the vulnerability cannot be triggered by the container alone without this external operator action. Exploitation is further constrained by AC:H (high complexity): the symlink swap must win a narrow timing race against the daemon's filesystem operations, requiring repeated attempts. The container does not gain any read or write access to existing host files - only the ability to create new empty files or directories. Exploitation is limited to Linux hosts running the Docker daemon; the Go os.Root fix requires Go 1.24 or newer to build.

Impact

The CVSS 6.1 medium score reflects the attack's real constraints well. AV:L confirms the initial foothold is inside the container - not a remotely exploitable network service. AC:H captures the timing-sensitive race condition, which requires the attacker's process to win a narrow window between daemon path resolution and mountpoint creation - non-trivial but achievable with a tight loop. PR:L indicates low-privilege execution inside the container suffices, with no requirement for container root. UI:R is the most significant limiting factor: an operator must actively invoke docker cp or the archive API against the targeted container, meaning passive persistence alone does not trigger the vulnerability. S:C (scope changed) correctly flags that impact crosses the container boundary to the host filesystem. The availability impact is rated High (A:H) because an attacker can corrupt critical host paths - e.g., converting /etc/docker/daemon.json into a directory or creating /etc/nologin - causing persistent denial of service. Confidentiality and write access to existing files are explicitly unaffected (C:N, I:L). No EPSS score was provided in the source data; no CISA KEV listing exists; no public POC has been identified. Real-world prioritization should be elevated in environments where docker cp is routinely used against containers running third-party or untrusted workloads, and treated as lower priority in strictly controlled, trusted-container environments.

Exploit ScenarioDerived

An attacker who controls code running inside a container - for example, a compromised containerized application or a deliberately malicious image - runs a tight loop that repeatedly creates a symlink at a volume mount destination path pointing to a sensitive host location such as /etc/docker/. When an operator subsequently runs docker cp somefile container:/vol/dst, the Docker daemon resolves /vol/dst via GetResourcePath, then calls createIfNotExists on the resolved absolute path; if the attacker's loop wins the race and swaps the path component for the symlink before os.MkdirAll executes, the daemon follows the symlink and creates an empty directory at /etc/docker/daemon.json on the host as root, permanently preventing the Docker daemon from restarting. No public POC has been identified, but the attack requires only standard filesystem operations available to any container process.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 18, 2026

Race condition in Docker's docker cp mount setup allows a process running inside a malicious container to create empty files or directories at arbitrary absolute paths on the host filesystem as root. Affected packages include github.com/docker/docker <= 28.5.2 and github.com/moby/moby <= 28.5.2, with a patch only confirmed for the moby/moby v2 branch at 2.0.0-beta.14. The CVSS vector reflects a scope-changed (S:C), high-availability-impact flaw requiring low privileges and high complexity; no public exploit or CISA KEV listing has been identified at time of analysis, but the attack is realistic when operators use docker cp against containers running untrusted workloads with volume mounts.

RemediationAI

For operators running moby/moby v2, upgrade to version 2.0.0-beta.14, where mountpoint creation is scoped to the container root using os.Root (Go 1.24+). This fix ensures all MkdirAll and OpenFile calls in createIfNotExists are performed through an anchored root handle that refuses symlink escapes, eliminating the race window. For docker/docker <= 28.5.2 and moby/moby (v1 line) <= 28.5.2, no upstream patch version has been confirmed in the available data - monitor https://github.com/moby/moby/security/advisories/GHSA-vp62-88p7-qqf5 for updates. In the interim, three workarounds are available: first, restrict docker cp and archive API usage to containers running only trusted images, eliminating the attacker-controlled process prerequisite; second, deploy an authorization plugin (Docker AuthZ plugin) to restrict or audit access to the PUT /containers/{id}/archive and HEAD /containers/{id}/archive API endpoints - note this adds operational overhead and may break automation that relies on these endpoints; third, avoid volume mounts in containers exposed to untrusted workloads where possible, since the vulnerability does not affect containers without volume mounts. None of these workarounds address the underlying race - they limit the conditions under which it can be triggered.

Affected VersionsENISA

moby github.com/docker/docker/daemon ≤ 28.5.2
moby github.com/moby/moby/v2/daemon < 2.0.0-beta.14
moby Docker Engine < 29.5.1

Affected Packages

go github.com/docker/docker no fix
go github.com/moby/moby no fix
go github.com/moby/moby/v2 fix: 2.0.0-beta.14
euvd moby_docker_engine fix: 29.5.1
euvd moby_github_com_docker_docker_daemon no fix
euvd moby_github_com_moby_moby_v2_daemon fix: 2.0.0-beta.14

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

CWE-61 (UNIX Symbolic Link Following) describes improper handling of symlink resolution, precisely the root cause here. Docker's daemon, when executing docker cp or servicing the PUT/HEAD /containers/{id}/archive API, constructs a temporary filesystem view by bind-mounting volumes into a private mount namespace. The destination path is resolved using GetResourcePath (which safely anchors resolution within the container root), and then createIfNotExists is called to ensure the mountpoint exists using standard Go os.MkdirAll and os.OpenFile. Critically, neither of those standard library calls is symlink-safe - they follow symlinks in intermediate path components. This creates a TOCTOU (time-of-check-to-time-of-use) window between GetResourcePath resolution and the createIfNotExists filesystem operation. Affected CPE packages are pkg:go/github.com_docker_docker, pkg:go/github.com_moby_moby, and pkg:go/github.com_moby_moby_v2. The fix, available in moby/moby v2, uses os.Root (introduced in Go 1.24), which opens a directory handle and performs all subsequent MkdirAll and OpenFile calls relative to that handle, refusing to follow any symlink that would escape the anchored root directory. A related race during the subsequent mount syscall itself is separately tracked under GHSA-rg2x-37c3-w2rh.

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

Vendor (https://github.com/moby/moby) PRIMARY 6.1 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:H
SUSE MEDIUM
Red Hat 3.9 LOW

Primary rating from Vendor (https://github.com/moby/moby).

CVSS VectorVendor: https://github.com/moby/moby

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
High

DescriptionCVE.org

Summary

A race condition during docker cp mount setup allows a malicious container to create empty files or directories at arbitrary absolute paths on the host filesystem.

This advisory covers the race during mountpoint creation. The related race during the subsequent mount syscall is tracked in GHSA-rg2x-37c3-w2rh

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 path is first resolved within the container's root filesystem using GetResourcePath, and then used to create the mountpoint (file or directory) if it does not already exist via createIfNotExists.

Between path resolution and mountpoint creation, a process running inside the container can swap a path component for a symlink pointing to an arbitrary location on the host. Because createIfNotExists operates on the already-resolved absolute path using standard os.MkdirAll and os.OpenFile - which follow symlinks in intermediate path components - the symlink is followed and the file or directory is created outside the container root filesystem, as root.

Impact

A malicious container can create empty files or directories at arbitrary absolute paths on the host filesystem, running as root. This enables persistent denial of service - for example:

  • Converting /etc/docker/daemon.json into a directory prevents the daemon from restarting
  • Creating /etc/nologin prevents user logins
  • Overwriting critical system paths with empty files can break host services

The container does not gain read or write access to existing host files - only the ability to create new empty files or directories at chosen paths.

Conditions for exploitation

  • A container must be running with a process that can rapidly create and swap symlinks at a volume mount destination path.
  • An operator must initiate a docker cp into that container, or call the PUT /containers/{id}/archive or HEAD /containers/{id}/archive API endpoints.

Not affected

  • Containers that do not have volume mounts are not affected, as the race occurs during volume bind-mount setup.

Patches

Mountpoint creation is now scoped to the container root using os.Root (Go 1.24+), which refuses to follow symlinks that escape the opened root directory. All filesystem operations in createIfNotExists (MkdirAll, OpenFile) are performed through the os.Root handle, so even if a symlink swap occurs after path resolution, the creation stays confined to the container root.

Workarounds

  • Only run containers from trusted images.
  • Avoid using docker cp with untrusted running containers.
  • Use authorization plugins to restrict access to the archive API endpoints (PUT /containers/{id}/archive, HEAD /containers/{id}/archive).

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Micro 5.3 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy