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

CVE-2026-42306: Docker: Race condition in docker cp allows bind mount redirection to host path

May 18, 2026

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.

References

  • github.com/advisories/GHSA-rg2x-37c3-w2rh
  • github.com/moby/moby/security/advisories/GHSA-rg2x-37c3-w2rh
  • nvd.nist.gov/vuln/detail/CVE-2026-42306

Code Behaviors & Features

Detect and mitigate CVE-2026-42306 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 before 2.0.0-beta.14

Fixed versions

  • 2.0.0-beta.14

Solution

Upgrade to version 2.0.0-beta.14 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/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

Source file

go/github.com/moby/moby/v2/CVE-2026-42306.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 06 Jun 2026 00:17:43 +0000.