Vulnerability · Published Oct 4, 2021 · Assigned by GitHub_M
CVE-2021-41089`docker cp` allows unexpected chmod of host files
Low 2.8
In plain English
A low-severity security flaw in moby from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | docker | 20.10.9-r0 | ALPINE-CVE-2021-41089 |
| Alpine:v3.21 | docker | 20.10.9-r0 | ALPINE-CVE-2021-41089 |
| Alpine:v3.22 | docker | 20.10.9-r0 | ALPINE-CVE-2021-41089 |
| Alpine:v3.23 | docker | 20.10.9-r0 | ALPINE-CVE-2021-41089 |
| Alpine:v3.24 | docker | 20.10.9-r0 | ALPINE-CVE-2021-41089 |
| Debian:12 | docker.io | 20.10.10+dfsg1-1 | DEBIAN-CVE-2021-41089 |
| Debian:13 | docker.io | 20.10.10+dfsg1-1 | DEBIAN-CVE-2021-41089 |
| Debian:14 | docker.io | 20.10.10+dfsg1-1 | DEBIAN-CVE-2021-41089 |
| Go | github.com/docker/docker | 20.10.9+incompatible | GO-2024-2913 |
| Go | github.com/docker/docker | 20.10.9 | GHSA-v994-f8vw-g7j4 |
| Go | github.com/moby/moby | 20.10.9+incompatible | GO-2024-2913 |
| Ubuntu:22.04:LTS | docker.io | 20.10.7-0ubuntu7 | UBUNTU-CVE-2021-41089 |
Affected products (as reported)
Weakness: CWE-281 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
References
- https://github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4 x_refsource_CONFIRM
- https://github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a x_refsource_MISC
- FEDORA-2021-df975338d4 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-b5a9a481a2 vendor-advisory, x_refsource_FEDORA
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf x_refsource_CONFIRM