All vulnerabilities

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
Weakness
Time-of-check time-of-use race condition (CWE-367)
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.
From moby/moby's security advisory. Shortened; the full text is there.

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.
Workarounds as given by moby/moby's security advisory.

Affected software

SoftwareAffected versions
Docker EngineServers and applications · github:moby/moby
  • Every version before 29.10.1
  • Every version up to 2.0.0-beta.31

About Docker Engine

open-source software for deploying and running of containerized applications

From Wikidata, CC0 1.0.
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

Release lines

ReleaseLatestSecurity fixes
2929.10.0Yes
2828.5.2Ended 13 May 2026
2727.5.1Ended 3 May 2025
26.126.1.5Ended 17 Feb 2025
26.026.0.2Ended 8 Jun 2024
25.025.0.18Until 4 Dec 2026

From endoflife.date.

References