Vulnerability DatabaseCVE-2026-135124

CVE-2026-135124: 
Docker vulnerability analysis and mitigation

Overview

CVE-2026-135124 is a Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability in Docker Engine's docker cp mount setup that allows a malicious container process to leave a read-only bind mount writable while an archive is being extracted into the container. It affects Docker Engine versions prior to 29.10.1 and Moby github.com/moby/moby/v2/daemon versions prior to 2.0.0-beta.32. The vulnerability was published on November 25, 2026, and was reported by security researcher Jaeyeong Lee. It carries a CVSS v3.1 base score of 4.4 (Medium) and a CVSS v4.0 base score of 4.1 (Medium) (Moby Advisory, Red Hat).

Technical details

The root cause is a CWE-367 (TOCTOU Race Condition) in the Docker daemon's handling of bind mounts during docker cp operations. When copying files into a container, the daemon bind-mounts the container's volumes into a temporary view and applies read-only flags afterwards via a path inside the container's filesystem. A process running inside the container can race to change that path between the time the daemon resolves it and the time it applies the read-only flag, causing the flag to land on a different mount while the intended bind mount remains writable for the duration of the copy. Exploitation requires: (1) the container has at least one read-only bind mount, (2) a process inside the running container can modify the path leading to that mount's destination, and (3) an operator or API client performs a docker cp or PUT /containers/{id}/archive into the container (Moby Advisory, Red Hat Bugzilla).

Impact

Successful exploitation allows a malicious container to make a read-only bind mount temporarily writable during a docker cp operation, enabling the archive being copied to create or overwrite files in the host directory behind the mount. The attacker does not control the content written — it comes from the archive supplied by whoever runs the copy — and cannot initiate the copy themselves. Files written through the temporarily writable mount persist after the copy completes, posing an integrity risk to host files. Confidentiality and availability are not impacted; the scope is limited to integrity of the host filesystem path exposed via the bind mount. In rootless Docker Engine deployments, impact is further constrained to files accessible to the daemon's user (Moby Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.201%, indicating a low probability of exploitation in the near term. Exploitation is non-trivial due to the race condition timing requirement, the need for an operator to initiate the docker cp operation, and the attacker's lack of control over the archive content (Moby Advisory).

Exploitation steps

  1. Setup: Operate or gain access to a running container that has at least one read-only bind mount and where a container process can modify filesystem paths (e.g., via symlink manipulation).
  2. Identify target mount path: Enumerate the container's read-only bind mounts and identify the path inside the container's filesystem that the Docker daemon will use to resolve and apply the read-only flag.
  3. Prepare race payload: Write a process or script inside the container that continuously replaces the target path (e.g., swapping a directory for a symlink pointing elsewhere) to win the race window between the daemon's path resolution and its application of the read-only flag.
  4. Wait for operator action: The attacker cannot initiate the copy — they must wait for an operator or API client to run docker cp <archive> <container>:<path> or issue a PUT /containers/{id}/archive request targeting the container.
  5. Win the race: When the docker cp operation begins, the container process swaps the path so the daemon applies the read-only flag to a decoy mount, leaving the intended bind mount writable.
  6. Achieve write: The archive extracted by the operator writes files into the host directory behind the now-writable bind mount; those files persist on the host after the copy completes (Moby Advisory).

Indicators of compromise

  • Logs: Docker daemon logs showing docker cp or PUT /containers/{id}/archive operations targeting running containers with read-only bind mounts; unexpected mount remapping or flag application errors in daemon logs.
  • File System: Unexpected or newly created/modified files in host directories that are bind-mounted into containers as read-only; symlinks appearing at mount destination paths inside the container filesystem that were not present before a docker cp operation.
  • Process: Unusual high-frequency filesystem path manipulation (e.g., rapid symlink creation/deletion) by processes inside a container coinciding with a docker cp operation.
  • Network: Unexpected PUT /containers/{id}/archive API calls in Docker daemon audit logs, especially from unfamiliar API clients or at unusual times (Moby Advisory, Red Hat Bugzilla).

Mitigation and workarounds

Upgrade Docker Engine to version 29.10.1 or later, or upgrade Moby to version 2.0.0-beta.32 or later to receive the patch (Moby Advisory). Until patching is possible, the following workarounds reduce risk: (1) do not copy files into running containers that execute untrusted workloads; (2) stop the container before performing docker cp operations; (3) use Docker authorization plugins to restrict access to PUT /containers/{id}/archive. Note that containers without read-only bind mounts, stopped containers, and copies out of containers are not affected (Moby Advisory).

Community reactions

The vulnerability was reported by researcher Jaeyeong Lee and published by Docker/Moby maintainer vvoland via the GitHub Security Advisory on November 24, 2026 (Moby Advisory). Red Hat tracked the issue via Bugzilla with a medium severity rating (Red Hat Bugzilla). Community coverage appeared in container security newsletters and blogs, including Container Security Dispatch and Crow's Nest security roundups, reflecting routine awareness rather than alarm given the moderate severity and exploitation prerequisites.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

bionic (esm-apps)

docker.io

Unknown

devel

docker.io

Unknown

focal (esm-apps)

docker.io

Unknown

jammy

docker.io

Unknown

jammy (esm-apps)

docker.io

Unknown

noble

docker.io

Unknown

noble (esm-apps)

docker.io

Unknown

resolute

docker.io

Unknown

RHEL / CentOS

Affected

OpenShift

el9:openshift-logging/logging-loki-rhel9

Affected

Alpine

Fixed

edge

docker: 29.10.1-r0

Fixed

Source: This report was generated using AI

Related Docker vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-124024MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • fabric-ca-server-dev
NoYesNov 17, 2026
CVE-2026-121758MEDIUM5.9
  • PostgreSQL logoPostgreSQL
  • glibc-langpack-yue
NoYesNov 17, 2026
CVE-2026-135844MEDIUM5.6
  • Docker logoDocker
  • docker
NoYesNov 25, 2026
CVE-2026-135124MEDIUM4.1
  • Docker logoDocker
  • moby-engine-nano
NoYesNov 25, 2026
CVE-2026-126765LOW3.7
  • PostgreSQL logoPostgreSQL
  • rf-glibc-langpack-su
NoYesNov 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management