CVE-2021-41089
MEDIUM 6.3CVSS 3.1`docker cp` allows unexpected chmod of host files in Moby Docker Engine
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.
- Published
- 4 Oct 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-281
- Also known as
- GHSA-v994-f8vw-g7j4GO-2024-2913
- Sources
- NVDJSONOSV GHSA-v994-f8vw-g7j4JSONOSV GO-2024-2913JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.4 | AV:L/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mobyproject | mobycpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* |
< 20.10.9 | 20.10.9 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
= 34 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* |
= 35 | |
| OSV | Go | github.com/docker/docker | < 20.10.9 | 20.10.9 |
| OSV | Go | github.com/docker/docker | < 20.10.9+incompatible | 20.10.9+incompatible |
| OSV | Go | github.com/moby/moby | < 20.10.9+incompatible | 20.10.9+incompatible |
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf · WEB
- https://github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a · Patch, Third Party Advisory, WEB, FIX
- https://github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4 · Third Party Advisory, WEB, ADVISORY
- 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/
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 4 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Jun 2024)