Docker Engine race in docker cp lets a container write through read-only bind mounts
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Docker | Docker Engine | unaffected |
|
||||||
| Moby | Moby | unaffected |
|
No data.
No data.
No data available yet.
Vendor Workaround
Do not copy files into running containers that run untrusted workloads. Stop the container before copying files into it. Use authorization plugins to restrict access to PUT /containers/{id}/archive.
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Docker Engine race in docker cp lets a container write through read-only bind mounts | |
| Weaknesses | CWE-367 | |
| References |
| |
| Metrics |
cvssV4_0
|
No data.
Time-of-check Time-of-use (TOCTOU) Race Condition
No data.
No data.
No data.
No data.