Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/moby/moby
  4. ›
  5. CVE-2026-41568

CVE-2026-41568: Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap

May 18, 2026 (updated June 12, 2026)

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

References

  • github.com/advisories/GHSA-vp62-88p7-qqf5
  • github.com/moby/moby/security/advisories/GHSA-vp62-88p7-qqf5
  • nvd.nist.gov/vuln/detail/CVE-2026-41568

Code Behaviors & Features

Detect and mitigate CVE-2026-41568 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 28.5.2

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-61: UNIX Symbolic Link (Symlink) Following
  • CWE-81: Improper Neutralization of Script in an Error Message Web Page

Source file

go/github.com/moby/moby/CVE-2026-41568.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Jun 2026 12:16:21 +0000.