Quick answers
- Is CVE-2026-42306 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-42306 being exploited in the wild.
- How severe is CVE-2026-42306?
- High severity, with a CVSS score of 7.2, published 12 June 2026.
- Which products and versions are affected?
- Docker <= 28.5.2; Docker Daemon <= 28.5.2; Docker Engine < 29.5.1; github.com/docker/docker (Go) <= 28.5.2, SEMVER:introduced=0, SEMVER:introduced=0,last_affected=28.5.2; and 4 more.
- Is there a fix for CVE-2026-42306?
- Yes. github.com/moby/moby/v2 (Go): upgrade to 2.0.0-beta.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-42306 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-42306?
- Check whether you run Docker, Docker Daemon, Docker Engine or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- github.com/moby/moby/v2 (Go): upgrade to 2.0.0-beta.14 or later
go get github.com/moby/moby/v2@v2.0.0-beta.14
Technical details
A Time-of-Check Time-of-Use (TOCTOU) race condition exists in the Docker/Moby daemon during the setup of temporary mount namespaces for the 'docker cp' operation. When copying files, the daemon creates a mount destination within the container root and then executes a bind mount. A malicious process inside the container can exploit the window between mountpoint creation and the mount() syscall by replacing the destination path with a symbolic link. Because the mount() syscall follows symlinks, the volume is attached to an arbitrary host path. This allows an attacker to overwrite host files (if the volume is writable) or mask host paths (if read-only), causing a denial of service. Exploitation requires the container to have at least one volume mount and an operator to initiate a 'docker cp' or archive API call.
Affected products
- Docker Docker Engine < 29.5.1
- Docker Docker Daemon <= 28.5.2
- Moby Moby Daemon < 2.0.0-beta.14
Identifiers
- CVE-2026-42306
- GHSA-rg2x-37c3-w2rh
- GO-2026-5617
Timeline
- 2026-05-18: advisory: Initial GitHub advisory published
- 2026-06-12: disclosed: CVE published to NVD