Loading advisory.
Loading advisory.
`docker cp` allows unexpected chmod of host files in Moby Docker Engine
A bug was found in Moby (Docker Engine) where attempting to copy files using docker cp into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others.
Published 2021-10-04 20:20 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/docker/docker | Go | < 20.10.9 < 20.10.9+incompatible | 20.10.9, 20.10.9+incompatible | go get github.com/docker/docker@v20.10.9go get github.com/docker/docker@v20.10.9+incompatible |
| github.com/moby/moby | Go | < 20.10.9+incompatible | 20.10.9+incompatible | go get github.com/moby/moby@v20.10.9+incompatible |
A bug was found in Moby (Docker Engine) where attempting to copy files using docker cp into a specially-crafted container can result in Unix file permission changes for existing files in the host’s filesystem, widening access to others. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process.
This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers do not need to be restarted.
Ensure you only run trusted containers.
The Moby project would like to thank Lei Wang and Ruizhi Xiao for responsibly disclosing this issue in accordance with the Moby security policy.
If you have any questions or comments about this advisory:
Email us at security@docker.com if you think you’ve found a security bug
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.003 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.003 | first score | v2026.06.15 |