Vulnerability · Published Jun 12, 2026 · Assigned by GitHub_M
CVE-2026-42306Moby: Race condition in docker cp allows bind mount redirection to host path
High 7.2
In plain English
A high-severity security flaw in moby from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Moby is an open source container framework. In Docker Engine prior to version 29.5.1, Docker Daemon versions 28.5.2 and prior, and Moby Daemon prior to version 2.0.0-beta.14, 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. This issue has been patched in Docker Engine version 29.5.1 and Moby Daemon version 2.0.0-beta.14.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | docker.io | no fix listed | DEBIAN-CVE-2026-42306 |
| Debian:13 | docker.io | 26.1.5+dfsg1-9+deb13u1 | DEBIAN-CVE-2026-42306 |
| Debian:14 | docker.io | 28.5.2+dfsg4-3 | DEBIAN-CVE-2026-42306 |
| Go | github.com/docker/docker | no fix listed | GHSA-rg2x-37c3-w2rh |
| Go | github.com/docker/docker | no fix listed | GO-2026-5617 |
| Go | github.com/moby/moby | no fix listed | GHSA-rg2x-37c3-w2rh |
| Go | github.com/moby/moby | no fix listed | GO-2026-5617 |
| Go | github.com/moby/moby/v2 | 2.0.0-beta.14 | GHSA-rg2x-37c3-w2rh |
| Go | github.com/moby/moby/v2 | 2.0.0-beta.14 | GO-2026-5617 |
| Ubuntu:25.10 | docker.io | no fix listed | UBUNTU-CVE-2026-42306 |
| Ubuntu:26.04:LTS | docker.io | no fix listed | UBUNTU-CVE-2026-42306 |
| Ubuntu:26.10 | docker.io | no fix listed | UBUNTU-CVE-2026-42306 |
| Ubuntu:25.10 | docker.io-app | no fix listed | UBUNTU-CVE-2026-42306 |
| Ubuntu:26.04:LTS | docker.io-app | no fix listed | UBUNTU-CVE-2026-42306 |
| Ubuntu:26.10 | docker.io-app | no fix listed | UBUNTU-CVE-2026-42306 |
Affected products (as reported)
Weakness: CWE-61, CWE-367 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:H
References
- https://github.com/moby/moby/security/advisories/GHSA-rg2x-37c3-w2rh x_refsource_CONFIRM