# CVE-2021-41089: `docker cp` allows unexpected chmod of host files

- Severity: Low 2.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2021-10-04T20:20:15.000Z
- Modified: 2026-09-10T03:50:15.851Z
- Also known as: GHSA-v994-f8vw-g7j4, GO-2024-2913
- Related: CGA-vg3j-3q98-vg3p
- Weaknesses: CWE-281
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- moby moby: < 20.10.9
- github.com/docker/docker (Go): before 20.10.9; before 20.10.9+incompatible
- github.com/moby/moby (Go): before 20.10.9+incompatible
- mobyproject moby: before 20.10.9
- fedoraproject fedora: 34; 35

## Every score

- GitHub_M: CVSS:3.1 2.8 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.8 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:2.0 4.4 Medium `AV:L/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4> (advisory, third-party-advisory, web)
- <https://github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/> (vendor-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41089> (advisory)
- <https://github.com/moby/moby> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB> (web)
- <https://pkg.go.dev/vuln/GO-2024-2913> (web)

## Sources

- CVE List: [CVE-2021-41089](https://www.cve.org/CVERecord?id=CVE-2021-41089), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-v994-f8vw-g7j4](https://github.com/advisories/GHSA-v994-f8vw-g7j4), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2913](https://pkg.go.dev/vuln/GO-2024-2913), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-41089](https://nvd.nist.gov/vuln/detail/CVE-2021-41089), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41089 · Whole record: https://cve.day/CVE-2021-41089.json · Rebuilt by cve.day 2026-11-25T22:58:04.295Z
