Docker Engine race in docker cp lets a container write through read-only bind mounts
- State
- Published
- Severity
- 4.1 Medium
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 23, 2026
Description
A race condition during docker cp mount setup in Docker Engine allows a malicious container to leave a read-only bind mount writable while an archive is extracted into the container. When copying files into a container, the daemon bind-mounts the container's volumes into a temporary view and applies the read-only flags afterwards, through a path inside the container's filesystem. A process in the container can change that path in between, so the flags are applied to a different mount and the intended bind mount stays writable for the duration of the copy.
| Product | Versions |
|---|---|
| Docker Engine Docker | before 29.10.1 Affected |
| Moby Moby | before 2.0.0-beta.32 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.1 Medium | Docker |
Weaknesses
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.