Docker Engine race in docker cp lets a container write through read-only bind mounts
No exploitation in the wild has been reported. Fixed in Engine 29.10.1 and 2.0.0-beta.32.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Docker | Engine | <29.10.1 | 29.10.1 |
| Moby | <2.0.0-beta.32 | 2.0.0-beta.32 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Docker, strongest first
Embed
A live severity badge for an advisory, README or ticket