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

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

May 18, 2026 (updated June 12, 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. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 28.5.2

Solution

Unfortunately, there is no solution available yet.

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/docker/docker/CVE-2026-42306.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Thu, 12 Nov 2026 00:16:45 +0000.