CVE-2026-42306

Moby: Race condition in docker cp allows bind mount redirection to host path

Published Jun 12, 2026 CVSS 3.1 · 7.2 High 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 redirect a bind mount target to an arbitrary host path, potentially overwriting host files or causing denial of service. 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 (CWE-367) in the docker cp mount setup allows a malicious container to redirect a bind mount to an arbitrary host path, effectively performing an absolute path traversal (CWE-61). The attacker can overwrite critical host files or cause a denial of service.

Affected Systems

The vulnerability affects Docker Engine (Moby) versions prior to 29.5.1 and Docker Daemon 28.5.2 and earlier, as well as Moby Daemon versions before 2.0.0-beta.14.

Risk and Exploitability

The CVSS score of 7.2 indicates high severity, while the EPSS score of less than 1% suggests a low probability of exploitation. The issue is not listed in the CISA KEV catalog. The likely attack vector involves a malicious container executing docker cp or similar operations that exploit the race condition; an attacker with container runtime privileges can redirect a bind mount and overwrite host files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Docker Engine to version 29.5.1 or later, or update Moby Daemon to 2.0.0-beta.14 or newer.
  • When an update cannot be applied immediately, restrict containers from using docker cp and disallow bind mounts by applying security profiles or runtime flags.
  • As a temporary workaround, run containers with the ‑‑read‑only flag and avoid using bind mounts to critical host paths.

Generated by OpenCVE AI on June 12, 2026 at 20:51 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-rg2x-37c3-w2rh Docker: Race condition in docker cp allows bind mount redirection to host path
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 redirect a bind mount target to an arbitrary host path, potentially overwriting host files or causing denial of service. 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 bind mount redirection to host path
Weaknesses CWE-367
CWE-61
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-367

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

  • CWE-61

    UNIX Symbolic Link (Symlink) Following

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 13, 2026, 3:25 AM
Reserved
Apr 26, 2026, 12:37 PM
Status
Analyzed
Published
Jun 12, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:47 AM