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

Read the record on cve.org

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.

ProductVersions
Docker Engine Dockerbefore 29.10.1 Affected
Moby Mobybefore 2.0.0-beta.32 Affected

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.