cve.bz

CVE-2021-41089 Improper Preservation of Permissions

6.3 mediumEPSS 0.3%Fix available

Medium (6.3). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/docker/docker 20.10.9, 20.10.9+incompatible.

On this page
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.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-281 Improper Preservation of Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-41089 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41089?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41089?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-41089 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mobyproject:mobybefore 20.10.9
fedoraproject:fedora34
fedoraproject:fedora35

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v994-f8vw-g7j4Gogithub.com/docker/docker<20.10.920.10.9
GO-2024-2913Gogithub.com/docker/docker<20.10.9+incompatible20.10.9+incompatible
GO-2024-2913Gogithub.com/moby/moby<20.10.9+incompatible20.10.9+incompatible

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41089
Ubuntu18.04:LTSdocker.io20.10.7-0ubuntu1~18.04.2UBUNTU-CVE-2021-41089 USN-5103-1
Ubuntu20.04:LTSdocker.io20.10.7-0ubuntu1~20.04.2UBUNTU-CVE-2021-41089 USN-5103-1
Ubuntu22.04:LTSdocker.io20.10.7-0ubuntu7UBUNTU-CVE-2021-41089
UbuntuPro:16.04:LTSdocker.io18.09.7-0ubuntu1~16.04.9+esm1UBUNTU-CVE-2021-41089 USN-5103-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 12 morerunc1.0.2-23.1SUSE-SU-2021:3506-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morecontainerd1.4.11-56.1SUSE-SU-2021:3506-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 moredocker20.10.9_ce-156.1SUSE-SU-2021:3506-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moredocker-stable24.0.9_ce-150000.1.25.1SUSE-SU-2025:03545-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Module for Containers 15 SP3containerd1.4.12-60.1SUSE-SU-2022:0334-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Module for Containers 15 SP3docker20.10.12_ce-159.1SUSE-SU-2022:0334-1
SUSELinux Enterprise Module for Containers 12containerd1.4.11-16.45.1SUSE-SU-2021:3336-1
SUSELinux Enterprise Module for Containers 12containerd1.4.12-16.49.1SUSE-SU-2022:0213-1
SUSELinux Enterprise Module for Containers 12docker20.10.12_ce-98.75.1SUSE-SU-2022:0213-1
SUSELinux Enterprise Module for Containers 12docker20.10.9_ce-98.72.1SUSE-SU-2021:3336-1
SUSELinux Enterprise Module for Containers 12runc1.0.2-16.14.1SUSE-SU-2021:3336-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5docker-stable24.0.9_ce-1.20.1SUSE-SU-2025:03540-1
openSUSELeap 15.2containerd1.4.11-lp152.2.12.1openSUSE-SU-2021:1404-1
openSUSELeap 15.2docker20.10.9_ce-lp152.2.18.1openSUSE-SU-2021:1404-1
openSUSELeap 15.2runc1.0.2-lp152.2.9.1openSUSE-SU-2021:1404-1
openSUSELeap 15.3containerd1.4.11-56.1openSUSE-SU-2021:3506-1
openSUSELeap 15.3containerd1.4.12-60.1openSUSE-SU-2022:0334-1
openSUSELeap 15.3docker, docker-kubic20.10.12_ce-159.1openSUSE-SU-2022:0334-1
openSUSELeap 15.3docker, docker-kubic20.10.9_ce-156.1openSUSE-SU-2021:3506-1
openSUSELeap 15.3runc1.0.2-23.1openSUSE-SU-2021:3506-1
openSUSELeap 15.6docker-stable24.0.9_ce-150000.1.25.1SUSE-SU-2025:03545-1
openSUSETumbleweeddocker20.10.9_ce-1.2openSUSE-SU-2024:11579-1
openSUSETumbleweeddocker-stable24.0.9_ce-15.1openSUSE-SU-2025:15589-1
Alpinev3.14, v3.15, v3.16 and 8 moredocker20.10.9-r0ALPINE-CVE-2021-41089

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In OpenShift Container Platform (OCP), Migration Toolkit for Virtualization (MTV) and Red Hat Quay some components bundle github.com/moby/moby, but successful exploitation requires using a specially crafted container, therefore impact to these components is LOW.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-controller-rhel8:2.2.0-39Fixed 2021-12-09RHEA-2021:5066
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/agent-service-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/assisted-installer-agent-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/assisted-installer-reporter-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/assisted-installer-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-subscription-release-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-subscription-rhel8Fix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm-assisted-service-containerAffected
Red Hat Enterprise Linux 7dockerOut of support scope
Red Hat OpenShift Container Platform 4openshift-compliance-openscap-containerFix deferred
Red Hat OpenShift Container Platform 4openshift-file-integrity-operator-containerFix deferred
Red Hat OpenShift Container Platform Assisted Installer 1rhai-tech-preview/assisted-installer-agent-rhel8Out of support scope
Red Hat OpenShift Container Platform Assisted Installer 1rhai-tech-preview/assisted-installer-reporter-rhel8Affected
Red Hat OpenShift Container Platform Assisted Installer 1rhai-tech-preview/assisted-installer-rhel8Not affected
Red Hat Quay 3quay/quay-builder-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-41089.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-22-167-09Siemens SCALANCE LPE9403 Third-Party Vulnerabilities2022-06-14MultipleSCALANCE LPE9403none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON