Servers and applications
CVE-2026-135124
Race in docker cp lets a container write through read-only bind mounts
- Severity
- Medium 4.1
- Published
- 24 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 24 Nov 2026
- Fixed in
- 29.10.1
- Attack
- Needs local access · Only under certain conditions · Needs a user account · Needs someone to click or open something
- Attacker can
- Change data
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N- Also known as
- GHSA-vfmq-r373-x89f
- Sources
- Project advisories (GitHub)
Description
A race condition during docker cp mount setup allows a malicious container to leave a read-only bind mount writable while an archive is extracted into the container, potentially modifying host files that were meant to be protected.
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 land on a different mount and the intended bind mount stays writable for the duration of the copy.
A malicious container can make a read-only bind mount writable while a docker cp into it is running. The archive being copied can then create or overwrite files in the host directory behind the mount.
- The attacker does not choose the content written. It comes from the archive supplied by whoever runs the copy.
- The attacker cannot start the copy. An operator or API client has to do it.
Workarounds
- 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.
Affected software
| Software | Affected versions |
|---|---|
Docker EngineServers and applications · github:moby/moby |
|
About Docker Engine
open-source software for deploying and running of containerized applications
- Developers building daily
- 20M+Docker
- Docker Hub pulls
- 3,680,560,262Docker Hub, 22 Nov 2026
- GitHub stars
- 72,303GitHub, 22 Nov 2026
- Forks
- 19,343GitHub, 22 Nov 2026
- Latest release
- docker-v29.10.0GitHub, 22 Nov 2026
- Released
- 16 Nov 2026GitHub
- Developer
- Docker, Inc.Wikidata
- License
- proprietary license, Apache License 2.0Wikidata
- Written in
- GoWikidata
- First released
- 14 Mar 2013Wikidata
- First published on GitHub
- 18 Jan 2013GitHub
Website Source code Docker image
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 29 | 29.10.0 | Yes |
| 28 | 28.5.2 | Ended 13 May 2026 |
| 27 | 27.5.1 | Ended 3 May 2025 |
| 26.1 | 26.1.5 | Ended 17 Feb 2025 |
| 26.0 | 26.0.2 | Ended 8 Jun 2024 |
| 25.0 | 25.0.18 | Until 4 Dec 2026 |
From endoflife.date.
Vulnerabilities in Docker Engine
- In our list
- 69
- Published in the last 12 months
- 10
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 1
- CVE-2026-115539Cluster-API proxy overwrites forwarded client identity with its ownHigh 7.7 10 Nov 2026
- CVE-2026-115538iptables rules for overlay-network encryption are not reinstalled after a firewalld reloadHigh 7.0 10 Nov 2026
- CVE-2026-92543Docker Engine insecure-registry fallback via malicious DNS responsesHigh 7.6 1 Oct 2026
- CVE-2026-92542Blind VXLAN injection into encrypted overlay networks from cluster peerMedium 6.9 1 Oct 2026
- CVE-2026-42306Race condition in docker cp allows bind mount redirection to host pathHigh 7.2 18 May 2026
- CVE-2026-41568Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swapMedium 6.1 18 May 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-135124
- GitHub Advisory Database https://github.com/advisories/GHSA-vfmq-r373-x89f
- github.com https://github.com/moby/moby/security/advisories/GHSA-vfmq-r373-x89f