{"cve":"CVE-2021-41089","nvd":{"published":"2021-10-04T21:15:12.620","modified":"2026-06-17T04:07:51.127","status":"Modified","description":"Moby is an open-source project created by Docker to enable software containerization. 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":6.3},"cwes":["CWE-281"],"references":["https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf","https://github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a","https://github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/"],"products":["fedoraproject:fedora","mobyproject:moby"],"source":"nvd","synced_at":"2026-10-19T21:23:41.316049955+00:00"},"epss":{"cve":"CVE-2021-41089","score":0.0029,"percentile":0.21619,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-v994-f8vw-g7j4","url":"https://osv.dev/vulnerability/GHSA-v994-f8vw-g7j4","summary":"`docker cp` allows unexpected chmod of host files in Moby Docker Engine","modified":"2026-09-10T03:50:15.851360441Z","packages":[{"ecosystem":"Go","name":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","ranges":["<20.10.9"],"fixed":["20.10.9"]}]},{"id":"GO-2024-2913","url":"https://osv.dev/vulnerability/GO-2024-2913","summary":"Unexpected chmod of host files via 'docker cp' in Moby Docker Engine in github.com/docker/docker","modified":"2026-02-04T03:21:51.972234Z","packages":[{"ecosystem":"Go","name":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","ranges":["<20.10.9+incompatible"],"fixed":["20.10.9+incompatible"]},{"ecosystem":"Go","name":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","ranges":["<20.10.9+incompatible"],"fixed":["20.10.9+incompatible"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}