CVE-2026-41568

Moby: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap

Published Jun 12, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
Moby is an open source container framework. In Docker Engine prior to version 29.5.1, Docker Daemon versions 28.5.2 and prior, and Moby Daemon prior to version 2.0.0-beta.14, 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 issue has been patched in Docker Engine version 29.5.1 and Moby Daemon version 2.0.0-beta.14.

Analysis

AI-generated

Technical impact

A race condition in the Docker "docker cp" mount setup allows a malicious container to create empty files or directories at any absolute path on the host filesystem. The resulting unauthorized file creation can undermine host integrity and serve as a foothold for further exploitation.

Affected Systems

The vulnerability affects Moby Daemon versions prior to 2.0.0‑beta.14 and Docker Engine versions earlier than 29.5.1 (including Docker daemon 28.5.2 and earlier).

Risk and Exploitability

The CVSS score of 6.1 indicates a moderate severity, and an EPSS score of less than 1% implies a low likelihood of exploitation. The vulnerability is not listed in CISA KEV. Attackers would need a container that can invoke "docker cp" and control symlink placement; the race condition occurs during mount setup and is mitigated by the patch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Docker Engine to 29.5.1 or later, or upgrade Moby Daemon to 2.0.0‑beta.14 or later.
  • Run containers with the least privileges possible, disable the use of "docker cp" from inside containers, and avoid mounting host paths that accept symlinks.
  • Use Docker user namespaces or read‑only root filesystems for containers to limit their ability to modify the host, reducing the potential impact of any race condition.

Generated by OpenCVE AI on June 12, 2026 at 19:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6443-1 docker.io security update
Github GHSA Github GHSA GHSA-vp62-88p7-qqf5 Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap
History
Type Values Removed Values Added
First Time appeared Docker
Docker engine
Mobyproject
Mobyproject moby
Mobyproject moby\/v2
CPEs cpe:2.3:a:docker:engine:*:*:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta0:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta10:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta11:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta12:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta13:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta2:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta3:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta4:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta5:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta6:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta7:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta8:*:*:*:*:*:*
cpe:2.3:a:mobyproject:moby\/v2:2.0.0:beta9:*:*:*:*:*:*
Vendors & Products Docker
Docker engine
Mobyproject
Mobyproject moby
Mobyproject moby\/v2
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Moby
Moby moby
Vendors & Products Moby
Moby moby
Type Values Removed Values Added
Description Moby is an open source container framework. In Docker Engine prior to version 29.5.1, Docker Daemon versions 28.5.2 and prior, and Moby Daemon prior to version 2.0.0-beta.14, 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 issue has been patched in Docker Engine version 29.5.1 and Moby Daemon version 2.0.0-beta.14.
Title Moby: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap
Weaknesses CWE-367
CWE-81
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:H'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-81

    Improper Neutralization of Script in an Error Message Web Page

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 12, 2026, 8:01 PM
Reserved
Apr 21, 2026, 2:15 PM
Status
Analyzed
Published
Jun 12, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:46 AM
Severity
Low
Public date
Jun 12, 2026, 6:08 PM