Back to list

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

GitHub · GitHub · CVE-2026-42306

ID
CVE-2026-42306
Date
Activity
Source
GitHub
Vendor
GitHub
Threat
high
CVSS
7.2

Summary

## Summary 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. ## Details When copying files into a container, the daemon sets up a temporary filesystem view by bind-mounting volumes into a private mount namespace. During this setup, the mount destination is created…

Product

go: github.com/docker/docker | go: github.com/moby/moby/v2 | go: github.com/moby/moby

What to do

General, cautious steps (verify details in the official source):

  • Prioritize patching or mitigation immediately (treat as actively risky).
  • Identify affected product versions in your inventory and verify whether you are impacted.
  • Apply vendor patches/updates or recommended mitigations as soon as available.
  • Read the official advisory for exact affected versions and remediation steps.

Official advisory

Related advisories