`docker cp` allows unexpected chmod of host files
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Partial Red Hat: 1 fixed, 5 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| moby | moby | before 20.10.9 | 20.10.9 | Patch available | CNA |
| — | github.com/docker/docker (Go) | before 20.10.9 | 20.10.9 | Patch available | GHSA-v994-f8vw-g7j4 |
- moby Vendormoby Affected before 20.10.9 Fixed in 20.10.9 Patch available CNA
- github.com/docker/docker (Go) Vendor— Affected before 20.10.9 Fixed in 20.10.9 Patch available GHSA-v994-f8vw-g7j4
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* | before 20.10.9 | Vulnerable | Mobyproject |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
- cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* Versions before 20.10.9 Vulnerable ·Mobyproject
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
Remediation
- Fix · CNA moby (moby) Fixed in 20.10.9
- Fix · GHSA-v994-f8vw-g7j4 github.com/docker/docker (Go) Fixed in 20.10.9 Advisory →
Red Hat 1 advisory
- RHSA-2022:0735 Released 2022-03-03 · Red Hat rating ImportantRed Hat Advanced Cluster Management 2.4.2 security updates and bug fixes
- Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
moby — FEDORA-2021-b5a9a481a2
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2021-17933 Insufficiently restricted permissions on data directory in Docker EnginePriority LOW 33
- Advisory ·
moby — FEDORA-2021-df975338d4
2 records Highest priority Priority LOW 2 LOW
Other records, highest priority first
- TI-2021-17933 Insufficiently restricted permissions on data directory in Docker EnginePriority LOW 33
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform Assisted Installer 1 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix yet |
| 8Base-MTV-2.2 | Fixed | — |
Not affected: 3 products
- 8Base-MTV-2.2
- Red Hat Advanced Cluster Management for Kubernetes 2
- Red Hat OpenShift Container Platform Assisted Installer 1
Timeline
- 2026-10-02 Threatist record created from CVE-2021-41089
- 2026-10-03 Alias added: GHSA-v994-f8vw-g7j4
References
Advisory 4
Other 5
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- https://github.com/moby/moby
- https://lists.fedoraproject.org/archives/list/[email protected]/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB
- https://pkg.go.dev/vuln/GO-2024-2913
More moby vulnerabilities
- TI-2026-14229 Tar extraction in moby/go-archive can write outside the destination directory via link following CVSS 4.0HIGH 7.1
- TI-2021-12512 Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx CVSS 3.1HIGH 7.1
- TI-2024-27462 Moby authz zero length regression CVSS 3.1CRITICAL 10.0
- TI-2024-15672 BuildKit interactive containers API does not validate entitlements check CVSS 3.1CRITICAL 9.8
- TI-2024-15671 BuildKit possible host system access from mount stub cleaner CVSS 3.1CRITICAL 10.0
- TI-2026-26365 Moby: AuthZ plugin bypass with oversized request body CVSS 3.1HIGH 8.8
Sources
- CVE-2021-41089 · CVE Program
- CVE-2021-41089 · NVD
- FIRST EPSS
- GHSA-v994-f8vw-g7j4 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-41089 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences