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.

Severity (CVSS 3.1)2.8Low
Exploit odds (30 days)0.3%top 78.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20docker20.10.9-r0ALPINE-CVE-2021-41089
Alpine:v3.21docker20.10.9-r0ALPINE-CVE-2021-41089
Alpine:v3.22docker20.10.9-r0ALPINE-CVE-2021-41089
Alpine:v3.23docker20.10.9-r0ALPINE-CVE-2021-41089
Alpine:v3.24docker20.10.9-r0ALPINE-CVE-2021-41089
Debian:12docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41089
Debian:13docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41089
Debian:14docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41089
Gogithub.com/docker/docker20.10.9+incompatibleGO-2024-2913
Gogithub.com/docker/docker20.10.9GHSA-v994-f8vw-g7j4
Gogithub.com/moby/moby20.10.9+incompatibleGO-2024-2913
Ubuntu:22.04:LTSdocker.io20.10.7-0ubuntu7UBUNTU-CVE-2021-41089

Affected products (as reported)

VendorProductVersions
moby moby < 20.10.9

Weakness: CWE-281 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N

References