CVE-2026-41568

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

State
Published
Severity
6.1 Medium
Published
Jun 12, 2026
Updated
Jun 12, 2026
Reserved
Apr 21, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.1 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:HGitHub_M

Weaknesses

  • CWE-81 Improper Neutralization of Script in an Error Message Web Page
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected Products

ProductVersions
mobymoby
  • github.com/docker/docker/daemon <= 28.5.2Affected
  • Docker Engine < 29.5.1Affected
  • github.com/moby/moby/v2/daemon < 2.0.0-beta.14Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.