Are you affected by CVE-2021-41089?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)CVE-2021-41089
moby: `docker cp` allows unexpected chmod of host file
Overview
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.
Source: OX vulnerability database
Severity
6.3 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
Weakness: CWE-281
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | github.com/docker/docker | <20.10.9 | 20.10.9 |
Open a package to see all its vulnerabilities.
Operating systems · 34 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | docker +4 | 19.03.15-5.ph4 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | atomic +13 | eol |
SUSE Linux Enterprise 5 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | docker-stable +1 | 24.0.9_ce-1.20.1 | SUSE-SU-2025:03540-1 |
| 15.4 | docker-stable +1 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
| 15.5 | docker-stable +1 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
| 15.6 | docker-stable +2 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
| 15.7 | docker-stable +2 | 24.0.9_ce-150000.1.25.1 | SUSE-SU-2025:03545-1 |
SUSE Linux Enterprise Micro 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.0 | runc | 1.0.2-23.1 | SUSE-SU-2021:3506-1 |
| 5.0 | containerd | 1.4.11-56.1 | SUSE-SU-2021:3506-1 |
| 5.0 | docker | 20.10.9_ce-156.1 | SUSE-SU-2021:3506-1 |
| 5.1 | runc | 1.0.2-23.1 | SUSE-SU-2021:3506-1 |
| 5.1 | containerd | 1.4.11-56.1 | SUSE-SU-2021:3506-1 |
| 5.1 | docker | 20.10.9_ce-156.1 | SUSE-SU-2021:3506-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | docker | 20.10.9-r0 |
| 3.23 | docker | 20.10.9-r0 |
| 3.24 | docker | 20.10.9-r0 |
| edge | docker | 20.10.9-r0 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| docker | 28.0.2-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | docker-io | affected |
| 11 | docker-io | 20.10.5+dfsg1-1+deb11u1 |
| 12 | docker-io | 20.10.10+dfsg1-1 |
| 13 | docker-io | 20.10.10+dfsg1-1 |
| 14 | docker-io | 20.10.10+dfsg1-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| docker-io | 20.10.10+dfsg1-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | docker-stable-buildx | 0.25.0-15.1 | openSUSE-SU-2025:15589-1 |
| Tumbleweed | docker +3 | 20.10.9_ce-1.2 | openSUSE-SU-2024:11579-1 |
| Tumbleweed | docker-stable +4 | 24.0.9_ce-15.1 | openSUSE-SU-2025:15589-1 |
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-docker-io | 20.10.10+dfsg1-1 |
ubuntu 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | docker-io | 20.10.7-0ubuntu1~18.04.2 |
| 18.04-ESM | docker-io | 20.10.7-0ubuntu1~18.04.2 |
| 20.04 | docker-io | 20.10.7-0ubuntu1~20.04.2 |
| 20.04-ESM | docker-io | 20.10.7-0ubuntu1~20.04.2 |
| 22.04 | docker-io | 20.10.7-0ubuntu7 |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| docker | 28.0.2-r0 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-41089
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- github.com https://github.com/moby/moby
- github.com https://github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a
- github.com https://github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-41089
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.