cve.bz

CVE-2021-41091 Improper Preservation of Permissions

6.3 mediumEPSS 2.8%Fix available

Medium (6.3). EPSS 2.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/moby/moby 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 the data directory (typically `/var/lib/docker`) contained subdirectories with insufficiently restricted permissions, allowing otherwise unprivileged Linux users to traverse directory contents and execute programs. When containers included executable programs with extended permission bits (such as `setuid`), unprivileged Linux users could discover and execute those programs. When the UID of an unprivileged Linux user on the host collided with the file owner or group inside a container, the unprivileged Linux user on the host could discover, read, and modify those files. This bug has been fixed in Moby (Docker Engine) 20.10.9. Users should update to this version as soon as possible. Running containers should be stopped and restarted for the permissions to be fixed. For users unable to upgrade limit access to the host to trusted users. Limit access to host volumes to trusted containers.

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
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-732 Incorrect Permission Assignment for Critical Resource
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-41091 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41091?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41091?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-41091 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-3fwx-pjgw-3558Gogithub.com/moby/moby<20.10.920.10.9
GHSA-3fwx-pjgw-3558Gogithub.com/docker/docker<20.10.920.10.9
GO-2024-2500Gogithub.com/docker/docker<20.10.9+incompatible20.10.9+incompatible
GO-2024-2500Gogithub.com/moby/moby<20.10.9+incompatible20.10.9+incompatible

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14docker.io20.10.10+dfsg1-1DEBIAN-CVE-2021-41091
Ubuntu18.04:LTSdocker.io20.10.7-0ubuntu5~18.04.2UBUNTU-CVE-2021-41091
Ubuntu20.04:LTSdocker.io20.10.7-0ubuntu5~20.04.1UBUNTU-CVE-2021-41091
Ubuntu22.04:LTSdocker.io20.10.7-0ubuntu5UBUNTU-CVE-2021-41091
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
Alpinev3.14, v3.15, v3.16 and 8 moredocker20.10.9-r0ALPINE-CVE-2021-41091

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 the OpenShift Container Platform (OCP), the Migration Toolkit for Virtualization (MTV) and the Red Hat Advanced Cluster Management for Kubernetes (RHACM) some components bundle github.com/moby/moby. However, successful exploitation requires direct access to the cluster hosts, which is not allowed by default and is available only to the cluster administrators, so the impact of this vulnerability to these components is Low.

Starting in OCP 4.7 the github.com/moby/moby is not shipped anymore in the openshift4-wincw/windows-machine-config-rhel8-operator component (Red Hat OpenShift Container Platform for Windows Containers version 2) , hence this component is marked as Will not fix.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-controller-rhel8:2.2.0-39Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-must-gather-api-rhel8:2.2.0-53Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-must-gather-rhel8:2.2.0-57Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-operator-bundle:2.2.0-104Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-rhel8-operator:2.2.0-59Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-ui-rhel8:2.2.0-60Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-validation-rhel8:2.2.0-36Fixed 2021-12-09RHEA-2021:5066
Migration Toolkit for Virtualization 2.2migration-toolkit-virtualization/mtv-virt-v2v-rhel8:2.2.0-18Fixed 2021-12-09RHEA-2021:5066
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/agent-service-rhel8Affected
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-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/search-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm-assisted-service-containerAffected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-rhel8-operatorNot affected
Red Hat Enterprise Linux 7dockerOut of support scope
Red Hat OpenShift Container Platform 4openshift4-wincw/windows-machine-config-rhel8-operatorWill not fix
Red Hat OpenShift Container Platform 4openshift-compliance-openscap-containerAffected
8 more in the JSON and on Red Hat's page.

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-41091.

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.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON