CVE-2026-42306
ADVISORY - githubSummary
Summary
A race condition during docker cp mount setup allows a malicious container to redirect a bind mount target to an arbitrary host path, potentially overwriting host files or causing denial of service.
Details
When copying files into a container, the daemon sets up a temporary filesystem view by bind-mounting volumes into a private mount namespace. During this setup, the mount destination is created inside the container root and then a bind mount is attached using the container-relative path resolved to an absolute host path.
Between mountpoint creation and the mount() syscall, a process running inside the container can replace the destination (or a parent path component) with a symlink pointing to an arbitrary location on the host. The mount() syscall follows the symlink, causing the volume to be bind-mounted onto an arbitrary host path instead of the intended container path.
Impact
A malicious container can redirect a volume bind mount to an arbitrary host path. The impact depends on the volume content and mount options:
- If the volume is writable, arbitrary host files at the redirected path could be overwritten with the volume's contents.
- If the volume is read-only, the host path is masked by the mount for the duration of the operation, causing denial of service.
- In all cases the mount is temporary (torn down after the
docker cpcompletes), but the effects of any writes persist.
Conditions for exploitation
- A container must have at least one volume mount.
- A process inside the container must be able to rapidly create and swap symlinks at the volume mount destination path.
- An operator must initiate a
docker cpinto that container, or call thePUT /containers/{id}/archiveorHEAD /containers/{id}/archiveAPI endpoints.
Not affected
- Containers that do not have volume mounts are not affected, as the race occurs during volume bind-mount setup.
Workarounds
- Only run containers from trusted images.
- Avoid using
docker cpwith untrusted running containers. - Use authorization plugins to restrict access to the archive API endpoints (
PUT /containers/{id}/archive,HEAD /containers/{id}/archive).
GitHub
CVSS SCORE
7.2high| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| github.com/docker/docker | golang | - | - | <=28.5.2 | Not yet available |
| github.com/moby/moby | golang | - | - | <=28.5.2 | Not yet available |
| github.com/moby/moby/v2 | golang | - | - | <2.0.0-beta.14 | 2.0.0-beta.14 |
| github.com/moby/moby/v2 | golang | - | - | <0.0.0-20260518145843-dd24a3adc1db | 0.0.0-20260518145843-dd24a3adc1db |
CVSS:3 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is not bound to the network stack and the attacker's path is via read/write/execute capabilities. Either: The attacker exploits the vulnerability by accessing the target system locally (e.g., keyboard, console), or remotely (e.g., SSH); or the attacker relies on User Interaction by another person to perform actions required to exploit the vulnerability (e.g., using social engineering techniques to trick a legitimate user into opening a malicious document).
A successful attack depends on conditions beyond the attacker's control, requiring investing a measurable amount of effort in research, preparation, or execution against the vulnerable component before a successful attack.
The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges has the ability to access only non-sensitive resources.
Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited. For example, a successful exploit may only be possible during the installation of an application by a system administrator.
An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.
There is no loss of confidentiality.
There is a total loss of integrity, or a complete loss of protection. For example, the attacker is able to modify any or all files protected by the impacted component. Alternatively, only some files can be modified, but malicious modification would present a direct, serious consequence to the impacted component.
There is a total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component.
NIST
CVSS SCORE
7.2highDebian
-
Ubuntu
0.8
CVSS SCORE
7.2mediumGoLang
-
Amazon
-
CVSS SCORE
N/AhighChainguard
CGA-cjw6-g67q-rwx9
-
Photon
CVE-2026-42306
-
CVSS SCORE
7.2highminimos
MINI-24pc-4636-vq22
-
minimos
MINI-253q-6qr7-c6cg
-
minimos
MINI-2v77-4mc5-w7m3
-
minimos
MINI-2vrg-4wvm-573p
-
minimos
MINI-375f-fwqg-jwm8
-
minimos
MINI-3f5m-w2mj-6mj6
-
minimos
MINI-3g54-4vqw-3j6w
-
minimos
MINI-3mr4-mpm8-prjq
-
minimos
MINI-3pcf-7pgm-rpxf
-
minimos
MINI-3v42-3863-c3hh
-
minimos
MINI-3vq4-ppgj-6hc2
-
minimos
MINI-3vwh-vm32-8c38
-
minimos
MINI-43q6-vrx8-v7g3
-
minimos
MINI-46v5-mfp4-ch45
-
minimos
MINI-4787-hhqx-fmhq
-
minimos
MINI-4gq5-2chh-wxpr
-
minimos
MINI-4hx2-23wp-49x6
-
minimos
MINI-4jqw-rvq9-x2cr
-
minimos
MINI-4q6m-66x9-224g
-
minimos
MINI-4r5r-6rgc-vvr5
-
minimos
MINI-4xh6-55f5-4rrp
-
minimos
MINI-552m-vj9v-rfj8
-
minimos
MINI-55hh-6m2h-p37m
-
minimos
MINI-55w9-qvfm-fq84
-
minimos
MINI-56gg-6vmq-mxvh
-
minimos
MINI-57q2-8222-96g5
-
minimos
MINI-57rw-mvxq-p7jh
-
minimos
MINI-5f75-p49h-hfjp
-
minimos
MINI-5fjj-9cvv-m82f
-
minimos
MINI-5gfq-4xgh-jjc8
-
minimos
MINI-5gh6-cqjw-j73m
-
minimos
MINI-5h35-fr7v-3p8x
-
minimos
MINI-5h57-r6pv-9g3p
-
minimos
MINI-5v8v-7h8v-h65c
-
minimos
MINI-5wq6-vpq5-9gqh
-
minimos
MINI-5xw5-p9m2-3pqf
-
minimos
MINI-62q5-vc7h-qjr9
-
minimos
MINI-63gr-c73f-6cpr
-
minimos
MINI-656c-pjjw-gv2p
-
minimos
MINI-65vg-p5wr-xx37
-
minimos
MINI-66mf-rmpg-jfhf
-
minimos
MINI-675p-wc3j-v698
-
minimos
MINI-683c-h7f7-fghg
-
minimos
MINI-68cp-q9fr-vfh7
-
minimos
MINI-68hf-w9f5-jjgq
-
minimos
MINI-6f8h-9m4p-j7qr
-
minimos
MINI-6hhj-9xcf-cgcf
-
minimos
MINI-6m33-p384-gw8q
-
minimos
MINI-6m8g-85rw-qm7c
-
minimos
MINI-6pmh-8352-5w7r
-
minimos
MINI-6q35-fq5r-mm36
-
minimos
MINI-6qm9-m8jr-m4mh
-
minimos
MINI-6rvx-3hc9-2925
-
minimos
MINI-6w7w-g65v-3m3q
-
minimos
MINI-6wc2-38m8-c74h
-
minimos
MINI-74jw-4v9v-m2gv
-
minimos
MINI-76v5-9wwx-fh64
-
minimos
MINI-776q-4x86-37x5
-
minimos
MINI-789q-xrr9-px5f
-
minimos
MINI-78pm-456f-8pmj
-
minimos
MINI-7cg3-5w72-vvf5
-
minimos
MINI-7fpc-x5f3-jw4h
-
minimos
MINI-7gp3-qqcx-h7w2
-
minimos
MINI-7p5j-74h3-xqj6
-
minimos
MINI-7rhx-9jg5-4w84
-
minimos
MINI-7rrr-3fpg-c2jr
-
minimos
MINI-823p-jqf6-4fxw
-
minimos
MINI-82w5-3fgp-mg22
-
minimos
MINI-8666-f4vg-mf3f
-
minimos
MINI-87gw-jmf6-cpjq
-
minimos
MINI-88xq-3p8p-6mhx
-
minimos
MINI-89f9-vj89-x97v
-
minimos
MINI-89m6-69qq-wvv5
-
minimos
MINI-8ggq-95h2-65rp
-
minimos
MINI-8hf2-9p55-75wr
-
minimos
MINI-8m5x-rmg2-5qmc
-
minimos
MINI-8m6p-c9rv-wpjc
-
minimos
MINI-8pr7-p667-wp38
-
minimos
MINI-8qq3-xr9p-m5cc
-
minimos
MINI-8qxh-hmvw-xhww
-
minimos
MINI-8wcm-3qqx-h7m2
-
minimos
MINI-9276-78f4-73qx
-
minimos
MINI-92wj-mjq5-r2hh
-
minimos
MINI-92xc-h5q7-qf99
-
minimos
MINI-932h-f4qj-7638
-
minimos
MINI-98hg-69r9-hw3f
-
minimos
MINI-99j6-hwgw-2xjv
-
minimos
MINI-99mg-g6r9-jwx5
-
minimos
MINI-9c29-3p7m-6rc6
-
minimos
MINI-9f8r-gmg9-368p
-
minimos
MINI-9h8h-v3pm-jv27
-
minimos
MINI-9jv9-g3jg-r8xr
-
minimos
MINI-9pc3-hjvv-jwch
-
minimos
MINI-9rvc-7wqm-gh2p
-
minimos
MINI-9vx4-j9ww-6vvg
-
minimos
MINI-9w43-mhq5-74hm
-
minimos
MINI-9w84-7qx3-x4w2
-
minimos
MINI-9w8v-79rj-2qm5
-
minimos
MINI-c45p-8h9r-q7vf
-
minimos
MINI-c4h2-7pv8-c7vq
-
minimos
MINI-c4h5-783f-2p72
-
minimos
MINI-c7q6-9rfh-8366
-
minimos
MINI-cc95-c348-9h7q
-
minimos
MINI-cp43-crq6-62c2
-
minimos
MINI-cw55-q8mc-35mx
-
minimos
MINI-cxc9-559m-pmxg
-
minimos
MINI-cxhw-hjh4-3mxw
-
minimos
MINI-f27q-crm3-mf7g
-
minimos
MINI-f3jw-cxwr-88r2
-
minimos
MINI-f3mc-2p7v-rcq8
-
minimos
MINI-f776-342p-hvqx
-
minimos
MINI-f79f-w77h-v668
-
minimos
MINI-f87v-vgpp-9mpv
-
minimos
MINI-f89x-9xc4-xcr5
-
minimos
MINI-f97x-gr4j-c336
-
minimos
MINI-fc4c-fg5v-xf28
-
minimos
MINI-fcw6-pr3p-22wq
-
minimos
MINI-ff2q-4q34-vwqc
-
minimos
MINI-ff7q-8366-rrpp
-
minimos
MINI-fpr4-q9ww-qqm2
-
minimos
MINI-fvwq-pqh5-5w66
-
minimos
MINI-fw3j-3fhm-7f7v
-
minimos
MINI-fwvf-p5qf-rx26
-
minimos
MINI-g4hm-h6pj-rf36
-
minimos
MINI-g649-3j56-x22m
-
minimos
MINI-g8p4-p92q-q3j8
-
minimos
MINI-g93j-r85h-4jgf
-
minimos
MINI-g9rj-7v3g-vjm4
-
minimos
MINI-grqc-w2j9-xmqm
-
minimos
MINI-gv77-h58q-mx9q
-
minimos
MINI-gw87-hqv5-vm26
-
minimos
MINI-gwv6-q53v-6x86
-
minimos
MINI-h34f-vcrq-58xw
-
minimos
MINI-h42h-p2jv-ffrw
-
minimos
MINI-h4gx-wx25-493x
-
minimos
MINI-h5p3-7fqc-c3h3
-
minimos
MINI-h63p-j76c-rhg5
-
minimos
MINI-h677-4j65-87w9
-
minimos
MINI-h896-96xc-hwpf
-
minimos
MINI-h8mj-mwqh-frg4
-
minimos
MINI-h93f-h87m-q2v2
-
minimos
MINI-hffp-f4hr-mfvf
-
minimos
MINI-hjxq-7prg-8fjx
-
minimos
MINI-hpff-72j9-vmmj
-
minimos
MINI-hpjp-hhgx-v5pf
-
minimos
MINI-hpqj-j56m-rrm4
-
minimos
MINI-hx7w-wj5g-85j9
-
minimos
MINI-j24h-xgv3-9v22
-
minimos
MINI-j4gr-3x2g-fqx5
-
minimos
MINI-j6q9-3737-w492
-
minimos
MINI-j75m-3f8v-85f7
-
minimos
MINI-j7j6-hp54-w9x8
-
minimos
MINI-jc35-63pw-6xqr
-
minimos
MINI-jc37-3mf9-c928
-
minimos
MINI-jcxw-5889-c56j
-
minimos
MINI-jfhq-q8w7-8rv2
-
minimos
MINI-jg79-hhc5-w26g
-
minimos
MINI-jggw-64pc-wc6m
-
minimos
MINI-jhjv-m2gv-6p39
-
minimos
MINI-jpw8-xxmf-h362
-
minimos
MINI-jrv3-x2mv-4ghx
-
minimos
MINI-jw6f-g3g2-wxjq
-
minimos
MINI-jwm6-x999-vj2h
-
minimos
MINI-jxgw-65q8-gcq9
-
minimos
MINI-m2gp-fw32-w9g9
-
minimos
MINI-m8gf-7635-w9vp
-
minimos
MINI-mmp5-4547-3w26
-
minimos
MINI-mwc9-4r77-8xcw
-
minimos
MINI-mxf9-8qwc-chq5
-
minimos
MINI-p28v-8x9f-3wg9
-
minimos
MINI-p2cf-83mp-m24c
-
minimos
MINI-p2p4-4wfh-gmv7
-
minimos
MINI-p2xq-xrcf-5g5f
-
minimos
MINI-p49v-x2vw-fxph
-
minimos
MINI-p4mc-v438-gwm3
-
minimos
MINI-p8cc-hg3h-c2q6
-
minimos
MINI-p939-h87w-q6qf
-
minimos
MINI-pjjj-78m5-fxwc
-
minimos
MINI-pmmj-v3fq-qjp5
-
minimos
MINI-pr3x-g64q-pv7v
-
minimos
MINI-prxf-5m7p-2928
-
minimos
MINI-pw8g-qprm-9wf2
-
minimos
MINI-pxf4-w8c4-27cf
-
minimos
MINI-q3rv-2hq4-h5hv
-
minimos
MINI-q6j8-fhw2-cx96
-
minimos
MINI-q7mf-c3x7-xhf7
-
minimos
MINI-q82h-g6m4-7r85
-
minimos
MINI-q9xq-pj4v-cc6x
-
minimos
MINI-qcfq-73h7-6784
-
minimos
MINI-qfmj-c7wp-jwgc
-
minimos
MINI-qjr7-5mch-fg4r
-
minimos
MINI-qjwx-fr7p-26m4
-
minimos
MINI-qpfr-7g3x-98j9
-
minimos
MINI-qqr8-7983-644h
-
minimos
MINI-qvf9-v936-rm84
-
minimos
MINI-qxvf-rprg-mr5c
-
minimos
MINI-r255-4rhw-6qp5
-
minimos
MINI-r297-9r3c-mpxp
-
minimos
MINI-r875-4f5m-mrw3
-
minimos
MINI-rc26-68mj-wg8q
-
minimos
MINI-rg7g-r77v-ww7f
-
minimos
MINI-rh94-7xgj-63mm
-
minimos
MINI-rmg4-929m-33rq
-
minimos
MINI-rmq5-697q-xmc6
-
minimos
MINI-rrxv-3rj4-2786
-
minimos
MINI-rv35-5c5p-34w2
-
minimos
MINI-rv64-pv2w-mq6f
-
minimos
MINI-rw2f-v863-85ff
-
minimos
MINI-v552-8vvr-f338
-
minimos
MINI-v576-prhv-9qr3
-
minimos
MINI-v622-6wc7-545w
-
minimos
MINI-v638-52v2-599h
-
minimos
MINI-v6c8-8vhg-gqqr
-
minimos
MINI-v794-xjq7-r368
-
minimos
MINI-v86c-j6vj-g38x
-
minimos
MINI-v9jg-mwwg-h2fj
-
minimos
MINI-v9mq-rhw7-w4j3
-
minimos
MINI-vc2c-w43j-62qh
-
minimos
MINI-vhc6-8c7w-wmx3
-
minimos
MINI-vjgh-ccmv-x5p3
-
minimos
MINI-vx22-8wjx-pm6c
-
minimos
MINI-vxp5-876w-2gjv
-
minimos
MINI-w3q2-g73w-gqgw
-
minimos
MINI-w66r-p4pp-9vc6
-
minimos
MINI-w6xx-rpg2-gw6w
-
minimos
MINI-w83w-995m-6mxm
-
minimos
MINI-w86h-6fvj-qw4w
-
minimos
MINI-w8vj-3qhv-26x4
-
minimos
MINI-wf2q-f9jx-r869
-
minimos
MINI-wffp-6r24-pw38
-
minimos
MINI-wj3x-98m9-974p
-
minimos
MINI-wjpv-pr6v-6449
-
minimos
MINI-wm29-gw24-94q4
-
minimos
MINI-wq3g-55vx-jpxg
-
minimos
MINI-wrr7-745h-cjfh
-
minimos
MINI-ww6x-g4vx-c7wc
-
minimos
MINI-wwvj-f42x-w96m
-
minimos
MINI-x64f-qg4m-hhhr
-
minimos
MINI-x8g7-2gxc-5w9w
-
minimos
MINI-x9r6-g397-73qq
-
minimos
MINI-xc46-cxjm-q8j3
-
minimos
MINI-xcq8-jwgr-39gx
-
minimos
MINI-xf29-x2m7-6943
-
minimos
MINI-xf7g-5xv9-f5g7
-
minimos
MINI-xf8r-jw5q-74r9
-
minimos
MINI-xfmc-2pvr-342r
-
minimos
MINI-xj6p-2f2q-cx6q
-
minimos
MINI-xjgm-9929-98v5
-
minimos
MINI-xjpv-6m3m-x62x
-
minimos
MINI-xm2v-mjr7-984m
-
minimos
MINI-xq52-2qr4-xph5
-
minimos
MINI-xqxr-8wx6-w7g7
-
minimos
MINI-xvr3-8rx8-v5mp
-
minimos
MINI-xw25-vjgg-pxcv
-
minimos
MINI-xx5f-hghm-r39w
-