CVE-2021-41089: `docker cp` allows unexpected chmod of host files
Vulnerability summary
CVE-2021-41089 is a medium (CVSS 6.3) Improper Preservation of Permissions vulnerability in fedoraproject fedora. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 21.6% of scored vulnerabilities.
Not severe (CVSS 2.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 11 · Related 12Timeline
- 04-10-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
9 scores · 8 sources · 2 versions- CVE.orgCNA2.8LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated2.8LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · DebianEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- OSV · GoEcosystem advisory · calculated2.8LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- OSV · AlpineEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
EPSS trend
Probability
0.29%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.29% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard8 products
- docker< 28.0.2-r0
- docker-config-mirror-gcr< 28.0.2-r0
- docker-dind< 28.0.2-r0
- docker-init< 28.0.2-r0
- docker-oci-entrypoint< 28.0.2-r0
Wolfi8 products
- docker< 28.0.2-r0
- docker-config-mirror-gcr< 28.0.2-r0
- docker-dind< 28.0.2-r0
- docker-init< 28.0.2-r0
- docker-oci-entrypoint< 28.0.2-r0
Alpine1 product
- docker< 20.10.9-r0
Debian1 product
- docker.io< 20.10.10+dfsg1-1
Fedoraproject1 product
- fedoraEOL34 | 35
Github.com/docker1 product
- docker< 20.10.9 | < 20.10.9+incompatible
Github.com/moby1 product
- moby< 20.10.9+incompatible
Moby1 product
- moby< 20.10.9
Mobyproject1 product
- moby< 20.10.9
Opensuse1 product
- docker&distro=openSUSE Tumbleweed< 20.10.9_ce-1.2
Ubuntu1 product
- docker.io< 18.09.7-0ubuntu1~16.04.9+esm1 | < 20.10.7-0ubuntu1~18.04.2 | < 20.10.7-0ubuntu1~20.04.2 | < 20.10.7-0ubuntu7
11 vendors · 25 products
References
16 links- github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4X Refsource CONFIRMREPORTAdvisoryWEBThird Party Advisory
- github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129aX Refsource MISCFIXWEBPatchThird Party Advisory