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

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-05-18T17:53:08.000Z
- Modified: 2026-09-10T03:50:47.528Z
- Also known as: GHSA-rg2x-37c3-w2rh, GO-2026-5617
- Related: CGA-cjw6-g67q-rwx9
- Weaknesses: CWE-61, CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- moby moby: github.com/docker/docker/daemon <= 28.5.2; Docker Engine < 29.5.1; github.com/moby/moby/v2/daemon < 2.0.0-beta.14
- github.com/docker/docker (Go): up to 28.5.2; all versions
- github.com/moby/moby/v2 (Go): before 2.0.0-beta.14
- github.com/moby/moby (Go): up to 28.5.2; all versions
- docker engine: before 29.5.1
- mobyproject moby: up to 28.5.2
- mobyproject moby/v2: 2.0.0

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `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> (advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42306> (advisory)
- <https://github.com/moby/moby> (package)

## Sources

- CVE List: [CVE-2026-42306](https://www.cve.org/CVERecord?id=CVE-2026-42306), CVE Terms of Use, modified 2026-06-13
- GitHub Advisory Database: [GHSA-rg2x-37c3-w2rh](https://github.com/advisories/GHSA-rg2x-37c3-w2rh), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5617](https://pkg.go.dev/vuln/GO-2026-5617), CC-BY-4.0, modified 2026-07-28
- NVD: [CVE-2026-42306](https://nvd.nist.gov/vuln/detail/CVE-2026-42306), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-42306 · Whole record: https://cve.day/CVE-2026-42306.json · Rebuilt by cve.day 2026-11-25T22:59:24.558Z
