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

CVE-2026-41568
MEDIUM 6.1

At a glance

Source
NVD
EPSS
EPSS 0.15 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
Affected products
moby · moby
NVD status
Analyzed

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.

Weaknesses (CWE)

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:HGitHub_M
CVSS 3.1MEDIUM 6.1CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:HNVD · security-advisories@github.com (Secondary)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductAffected versions
moby · moby
affected : github.com/docker/docker/daemon <= 28.5.2
affected : Docker Engine < 29.5.1
affected : github.com/moby/moby/v2/daemon < 2.0.0-beta.14

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD