# CVE-2026-41568: Moby: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap

> A malicious container can exploit a race condition in docker cp to create arbitrary empty files or directories on the host filesystem.

- **Severity:** Medium 6.1 (`CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:L/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 12 Jun 2026
- **Updated:** 12 Jun 2026
- **Also known as:** BELL-CVE-2026-41568, CLEANSTART-2026-JK73485, DEBIAN-CVE-2026-41568, ECHO-e9b5-dcda-52fb, GHSA-vp62-88p7-qqf5, GO-2026-5668, MINI-237p-mp72-4g9q, MINI-24gq-mv2r-4323, MINI-2753-hrqv-6jpm, MINI-28ww-3wp8-74x6, MINI-2frh-9vxq-x2x6, MINI-2g7m-2gqg-fx56, MINI-2jrp-h7w7-gwpw, MINI-2mmr-49cg-j8pv, MINI-2mw7-54mm-mvrr, MINI-2x33-qjcr-6536, MINI-32rj-8qp4-9h73, MINI-367m-9xf5-r8fj, MINI-37g5-xc3h-mfpf, MINI-37wj-5w6f-8x4f, MINI-3975-vj5g-97fc, MINI-3cvx-988v-gmcq, MINI-3f3v-qgx3-h4fj, MINI-3fj4-33q6-3f6r, MINI-3gvx-x577-qpjc, MINI-3gw4-25gq-22gx, MINI-3gxw-mv66-9498, MINI-3pj7-h5jp-w643, MINI-3xrm-cwh4-26cw, MINI-432j-h5c7-gqcx, MINI-43x4-vp3r-jhfv, MINI-46px-m9wh-9jqc, MINI-4739-c777-r3j6, MINI-4f3g-jvw9-9w4h, MINI-4h84-mrfm-93mw, MINI-4j32-ph2r-h79q, MINI-4jq7-g964-rv62, MINI-4p7m-x76q-2h32, MINI-4w44-jpmw-fwph, MINI-53fg-2p7j-7c4j, MINI-5539-924f-39cj, MINI-553r-9fq4-p2w7, MINI-5jv3-8jvv-hj3p, MINI-5p2c-656h-g6wj, MINI-5w82-pr3m-cjj4, MINI-67q7-2jmj-93wq, MINI-6969-35r9-rvh3, MINI-6j76-m8v8-p7pc, MINI-6m2p-xjv3-q3rq, MINI-6x2r-h93g-3h7c, MINI-6xvf-7332-f5xp, MINI-7395-ffqc-mxpx, MINI-7726-vjmq-4mc3, MINI-7866-4r24-f4x5, MINI-78wf-p24q-mwgg, MINI-7f9w-fqrx-g5x9, MINI-7ffx-j3vq-67r5, MINI-7rh7-8jqh-g5x6, MINI-7vrv-qhvh-v9jf, MINI-7whr-qhr3-4wmx, MINI-836p-72cq-c8g3, MINI-83rc-pgq5-pw5q, MINI-848m-8mr7-g9pf, MINI-868j-hxgv-m552, MINI-8732-76gv-952x, MINI-8795-c9q2-8ggc, MINI-882h-7p9q-xj22, MINI-8cq5-wcvw-jqxp, MINI-8crj-rh7x-5278, MINI-8g2x-p77q-phx2, MINI-8gpp-82fq-vg9c, MINI-8h8c-mgpg-fjqj, MINI-8mh5-5cm3-374g, MINI-8qrr-hxx2-j4qq, MINI-8x23-2985-58rh, MINI-92p8-h6v3-ggj7, MINI-9686-33pj-mqjp, MINI-96jm-2f9m-43v2, MINI-9hhg-w93j-96xg, MINI-9j36-h29f-cvf9, MINI-9jr3-48rm-rfwv, MINI-9v22-hm57-9w6m, MINI-c56v-mw74-84x2, MINI-c7m6-fq8w-r272, MINI-c879-xx22-7pph, MINI-ccx3-27jm-7qrm, MINI-cgc7-v3w8-jwr4, MINI-chjw-gg8r-mffr, MINI-chrx-4492-f76q, MINI-cq52-vfc7-8wm4, MINI-cqgp-7mrq-g3pw, MINI-cr65-5q2r-f7r9, MINI-crpp-8hmf-j2px, MINI-cvqq-6qmp-5p73, MINI-f2wp-8w2f-pf3w, MINI-f3q5-7xgg-g49m, MINI-f4cf-xjj8-7x4j, MINI-f58x-wp78-wfc2, MINI-f5g5-4373-cg9j, MINI-f653-qr7f-8p6x, MINI-f96c-q7mh-v6p9, MINI-fccq-mm4p-fmrj, MINI-fjhp-c5rm-526h, MINI-fmj6-rc4c-wh6w, MINI-fp2g-pj32-2wf3, MINI-fpcj-ww8w-8x82, MINI-fpcw-fp24-283f, MINI-fphx-68qw-9qfm, MINI-fpqc-3v6q-7wqr, MINI-fq5q-gjpc-fc3g, MINI-fqfv-cmxw-99h2, MINI-fwmf-mv9m-8hp4, MINI-g49g-3pj5-3982, MINI-g83q-9745-x7mf, MINI-g8v4-wp8c-mv9f, MINI-g999-7897-5jrh, MINI-gf2p-394f-65c6, MINI-gf53-r38j-fx8x, MINI-gqq3-5785-chcr, MINI-gwhj-86pc-mmcr, MINI-h6pq-hfvj-h96q, MINI-h72c-2gpg-4mmw, MINI-h98r-jjm5-57vf, MINI-hccx-mc7w-w82w, MINI-hcxv-98vj-9hx9, MINI-hr8f-2mv7-5v46, MINI-hwpm-2pjp-xj3w, MINI-j644-8mv5-hxwx, MINI-jc2r-p3vr-877w, MINI-jqfp-vp8r-fc8f, MINI-jrpw-28qf-23q7, MINI-jv95-62xc-7mgx, MINI-jvfq-2742-jpjc, MINI-jwm5-mm5f-hr7f, MINI-m44c-jhvh-xh44, MINI-mcwc-mqgx-rfjh, MINI-mjrv-hchp-2677, MINI-mmpc-9676-f2gc, MINI-mw87-x8qf-c6pf, MINI-p5g4-6jf6-9p5x, MINI-p5mx-ghcr-pv3g, MINI-p6h7-hpvq-vp53, MINI-p6xv-g5m6-j72q, MINI-p92j-p2w2-hv4w, MINI-p9cc-fj8m-qx59, MINI-pcqg-qw2w-rxc6, MINI-pghf-2m5f-2fhf, MINI-pp22-rrmg-rm5h, MINI-ppjg-62gc-6pmf, MINI-q3gw-369p-7vmx, MINI-q487-9744-c5rm, MINI-q72g-9q2m-mmw2, MINI-q73x-8j6m-cvgw, MINI-qcf3-84vr-9559, MINI-qjhr-mhmg-ghgw, MINI-qp44-v2vp-q7vf, MINI-qqqg-m88w-q8hj, MINI-qv65-qr5j-8jcw, MINI-qvjw-fh2g-m25x, MINI-qxgw-cvf6-jfmr, MINI-r48j-m88j-4vg6, MINI-r4rh-pp8m-vhmm, MINI-r574-v89g-98mc, MINI-r638-82h3-7cvc, MINI-r663-hq35-3hr7, MINI-r6c4-rp93-j2g7, MINI-r6w8-363j-fh7x, MINI-r8jf-wrv5-97q9, MINI-rg27-hf7r-j273, MINI-rphp-p58r-qrq5, MINI-rpjc-fwv2-5wpf, MINI-rq7x-w3r7-4vxm, MINI-rrgh-8jx7-7mr4, MINI-rwfw-hv9w-v6m4, MINI-rwmh-f8hv-vpjf, MINI-v6w8-wq5p-j425, MINI-v8xv-xw72-6g73, MINI-v9qm-cqmv-r9xr, MINI-vh5j-vmrc-qvrv, MINI-vjr2-2fm7-788w, MINI-vqj3-8vrm-8hj5, MINI-vr7m-mxcp-rgjq, MINI-vvrv-xr7j-4fhh, MINI-w5hm-hgf2-3g65, MINI-w6jg-8hvf-jchf, MINI-w72r-65mw-6x94, MINI-w75j-f4fx-99c6, MINI-w97c-36qv-w7xf, MINI-wh96-cr26-9qjq, MINI-wmc8-2xm6-f4qp, MINI-wmgw-x5hw-fhjm, MINI-wrvr-vffm-3vxf, MINI-x293-6mv3-wffm, MINI-x2cg-6wgq-89gj, MINI-x2qr-64x8-3mr5, MINI-x55m-wr4h-g83h, MINI-x87p-4q5m-v9pp, MINI-xfwp-8vrx-hxmj, MINI-xh3g-m6x6-c6cq, MINI-xh65-p9rf-3vjq, MINI-xhqp-fjxg-87cw, MINI-xwf6-q668-j772, ROOT-APP-GOBINARY-CVE-2026-41568, UBUNTU-CVE-2026-41568

## What is CVE-2026-41568?

CVE-2026-41568 is a medium-severity vulnerability in moby, published on 12 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### 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 create empty files or directories at arbitrary absolute paths on the host filesystem. This issue has been patched in Docker Engine version 29.5.1 and Moby Daemon version 2.0.0-beta.14.

Weakness: CWE-81 (Improper Neutralization of Script in an Error Message Web Page), CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition)

## Which versions are affected by CVE-2026-41568?

9 open source packages ship an affected version, including github.com/moby/moby, github.com/docker/docker and github.com/moby/moby/v2. It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/moby/moby` | Go | All versions | None |
| `github.com/moby/moby` | Go | All versions to 28.5.2 | None |
| `github.com/moby/moby` | Go | All versions to 28.5.2 | None |
| `github.com/docker/docker` | Go | All versions | None |
| `github.com/docker/docker` | Go | All versions to 28.5.2 | None |
| `github.com/docker/docker` | Go | All versions to 28.5.2 | None |
| `github.com/moby/moby/v2` | Go | All versions | 2.0.0-beta.14 |
| `github.com/moby/moby/v2` | Go | All versions | 2.0.0-beta.14 |
| `github.com/moby/moby/v2` | Go | All versions | 2.0.0-beta.14 |

Products: Docker Engine, Mobyproject Moby, Mobyproject Moby\/V2.

## How do I fix CVE-2026-41568?

Upgrade to a fixed version.

## Is CVE-2026-41568 being exploited?

There is no known exploitation of CVE-2026-41568 in the wild and no public exploit code.

## Other vulnerabilities in moby

- [CVE-2026-34040](https://insights.sbomify.com/CVE-2026-34040/): Moby: AuthZ plugin bypass with oversized request body (high 8.8)
- [CVE-2026-42306](https://insights.sbomify.com/CVE-2026-42306/): Moby: Race condition in docker cp allows bind mount redirection to host path (high 7.2)
- [CVE-2026-33997](https://insights.sbomify.com/CVE-2026-33997/): Moby: Off-by-one error in plugin privilege validation (medium 6.8)
- [CVE-2018-20699](https://insights.sbomify.com/CVE-2018-20699/): Denial of service in n/a (medium 4.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-41568 and fix it if it is affected.

What it is: CVE-2026-41568 is a medium-severity vulnerability in moby, published on 12 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-41568 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/moby/moby (Go): affected all versions; no fix listed
- github.com/moby/moby (Go): affected all versions up to 28.5.2; no fix listed
- github.com/moby/moby (Go): affected all versions up to 28.5.2; no fix listed
- github.com/docker/docker (Go): affected all versions; no fix listed
- github.com/docker/docker (Go): affected all versions up to 28.5.2; no fix listed
- github.com/docker/docker (Go): affected all versions up to 28.5.2; no fix listed
- github.com/moby/moby/v2 (Go): affected all versions; fixed in 2.0.0-beta.14
- github.com/moby/moby/v2 (Go): affected all versions; fixed in 2.0.0-beta.14
- github.com/moby/moby/v2 (Go): affected all versions; fixed in 2.0.0-beta.14

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-41568/ (Markdown: https://insights.sbomify.com/CVE-2026-41568/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-41568
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-41568
- OSV: https://osv.dev/vulnerability/CVE-2026-41568

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-41568/
Summaries are generated and may contain mistakes; the official description above is the record.
