CVE-2021-41089: `docker cp` allows unexpected chmod of host files
Noroxi assessment
Priority: Monitor (action score 25/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.29% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: docker (Alpine:v3.14) 20.10.9-r0; docker.io (Debian:12) 20.10.10+dfsg1-1; github.com/docker/docker (Go) 20.10.9+incompatible, 20.10.9.
- Severity is disputed: the assigning authority (CNA) scores it 2.8, NVD 6.3.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to docker (Alpine:v3.14) 20.10.9-r0; docker.io (Debian:12) 20.10.10+dfsg1-1; github.com/docker/docker (Go) 20.10.9+incompatible, 20.10.9 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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
- Oct 4, 2021
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 21th percentile
- CWE
- CWE-281
Report tools
Action score
25
Low priority for now.
- CVSS
- 25 / 40 · 6.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CNA vs NVD score
- NVD
- 6.3
- CNA · GitHub_M
- 2.8
- 3.5 point gap
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| mobyproject | moby | cpe:2.3:a:mobyproject:moby |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Using moby? Add it to your stack and be the first to know about CVEs like this one. (Docker)
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
moby moby
- < 20.10.9affected
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- fedoraproject fedora34
- fedoraproject fedora35
- mobyproject mobybefore 20.10.9
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.14 | docker | before 20.10.9-r0 | 20.10.9-r0 |
| Debian:12 | docker.io | before 20.10.10+dfsg1-1 | 20.10.10+dfsg1-1 |
| Go | github.com/docker/docker | before 20.10.9+incompatible | 20.10.9+incompatible |
| Go | github.com/docker/docker | before 20.10.9 | 20.10.9 |
| Go | github.com/moby/moby | before 20.10.9+incompatible | 20.10.9+incompatible |
| openSUSE:Leap 15.2 | containerd | before 1.4.11-lp152.2.12.1 | 1.4.11-lp152.2.12.1 |
| openSUSE:Leap 15.2 | docker | before 20.10.9_ce-lp152.2.18.1 | 20.10.9_ce-lp152.2.18.1 |
| openSUSE:Leap 15.2 | runc | before 1.0.2-lp152.2.9.1 | 1.0.2-lp152.2.9.1 |
| openSUSE:Leap 15.3 | containerd | before 1.4.11-56.1 | 1.4.11-56.1 |
| openSUSE:Leap 15.3 | containerd | before 1.4.12-60.1 | 1.4.12-60.1 |
| openSUSE:Leap 15.3 | docker | before 20.10.12_ce-159.1 | 20.10.12_ce-159.1 |
| openSUSE:Leap 15.3 | docker | before 20.10.9_ce-156.1 | 20.10.9_ce-156.1 |
| openSUSE:Leap 15.3 | docker-kubic | before 20.10.9_ce-156.1 | 20.10.9_ce-156.1 |
| openSUSE:Leap 15.3 | docker-kubic | before 20.10.12_ce-159.1 | 20.10.12_ce-159.1 |
| openSUSE:Leap 15.3 | runc | before 1.0.2-23.1 | 1.0.2-23.1 |
| openSUSE:Tumbleweed | docker | before 20.10.9_ce-1.2 | 20.10.9_ce-1.2 |
| SUSE:Linux Enterprise Module for Containers 12 | containerd | before 1.4.11-16.45.1 | 1.4.11-16.45.1 |
| SUSE:Linux Enterprise Module for Containers 12 | containerd | before 1.4.12-16.49.1 | 1.4.12-16.49.1 |
| SUSE:Linux Enterprise Module for Containers 12 | docker | before 20.10.12_ce-98.75.1 | 20.10.12_ce-98.75.1 |
| SUSE:Linux Enterprise Module for Containers 12 | docker | before 20.10.9_ce-98.72.1 | 20.10.9_ce-98.72.1 |
| SUSE:Linux Enterprise Module for Containers 12 | runc | before 1.0.2-16.14.1 | 1.0.2-16.14.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP2 | containerd | before 1.4.11-56.1 | 1.4.11-56.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP2 | docker | before 20.10.9_ce-156.1 | 20.10.9_ce-156.1 |
| SUSE:Linux Enterprise Module for Containers 15 SP2 | runc | before 1.0.2-23.1 | 1.0.2-23.1 |
+2
Same product
mobyproject: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-28840moby/moby's dockerd daemon encrypted overlay network may be unauthenticated35Monitor
- CVE-2024-36623moby through v25.0.3 has a Race Condition vulnerability in the streamformatter package which can be used to trigger multiple concurrent…32Monitor
- CVE-2024-24557Moby classic builder cache poisoning31Monitor
Published before and after this one in the same product
- ← EarlierCVE-2017-16539Nov 4, 2017 · The DefaultLinuxSpec function in oci/defaults.go in Docker Moby through 17.03.2-ce does not block /proc/scsi pathnames, which allows…24Monitor
- ← EarlierCVE-2018-12608Sep 10, 2018 · An issue was discovered in Docker Moby before 17.06.0.30Monitor
- Later →CVE-2021-41091Oct 4, 2021 · Insufficiently restricted permissions on data directory in Docker Engine26Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| alpine:docker | 20.10.9-r0 · Alpine:v3.14 | Package registry (OSV) |
| debian:docker.io | 20.10.10+dfsg1-1 · Debian:12 | Package registry (OSV) |
| Go:github.com/docker/docker | 20.10.9 | Package registry (OSV) |
| Go:github.com/docker/docker | 20.10.9+incompatible | Package registry (OSV) |
| Go:github.com/moby/moby | 20.10.9+incompatible | Package registry (OSV) |
| opensuse:containerd | 1.4.11-lp152.2.12.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:docker | 20.10.9_ce-lp152.2.18.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:docker-kubic | 20.10.9_ce-156.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:runc | 1.0.2-lp152.2.9.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| suse:containerd | 1.4.11-16.45.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
| suse:docker | 20.10.9_ce-98.72.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
| suse:runc | 1.0.2-16.14.1 · SUSE:Linux Enterprise Module for Containers 12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0433 · Jun 17, 2022(Siemens Endüstriyel Ürünler Zafiyeti)
Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- low · the service can be disrupted
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- Low
Weakness class (CWE)
CWE-281 · Improper Preservation of PermissionsCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (4 more)Show less
- github.com/moby/moby/commit/bce32e5c93be4caf1a592582155b9cb837fc129a
- github.com/moby/moby/security/advisories/GHSA-v994-f8vw-g7j4
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.