CVE-2021-41091: Insufficiently restricted permissions on data directory in Docker Engine
Vulnerability summary
CVE-2021-41091 is a medium (CVSS 6.3) Improper Preservation of Permissions vulnerability in fedoraproject fedora. EPSS estimates a 2.85% chance of exploitation in the next 30 days, higher than 86.7% of scored vulnerabilities.
Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 11Timeline
- 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 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.
CVSS metrics
9 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- 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 · calculated5.9MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- NVDNIST6.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
2.85%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.85% 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 cause- CWE-281Improper Preservation of PermissionsThe product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.
- CWE-732Incorrect Permission Assignment for Critical ResourceThe product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard10 products
- dockerAll versions (No fix recorded)
- docker-config-mirror-gcrAll versions (No fix recorded)
- docker-dindAll versions (No fix recorded)
- docker-initAll versions (No fix recorded)
- docker-machine-driver-harvester< 1.0.5-r0 | < 1.0.4-r1
Wolfi10 products
- dockerAll versions (No fix recorded)
- docker-config-mirror-gcrAll versions (No fix recorded)
- docker-dindAll versions (No fix recorded)
- docker-initAll versions (No fix recorded)
- docker-machine-driver-harvester< 1.0.5-r0 | < 1.0.4-r1
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 | < 20.10.9+incompatible
Moby1 product
- moby< 20.10.9
Mobyproject1 product
- moby< 20.10.9
Ubuntu1 product
- docker.io< 20.10.7-0ubuntu5~18.04.2 | < 20.10.7-0ubuntu5~20.04.1 | < 20.10.7-0ubuntu5
10 vendors · 28 products
References
13 links- github.com/moby/moby/security/advisories/GHSA-3fwx-pjgw-3558X Refsource CONFIRMREPORTAdvisoryWEBThird Party Advisory
- github.com/moby/moby/commit/f0ab919f518c47240ea0e72d0999576bb8008e64X Refsource MISCFIXWEBPatchThird Party Advisory
- github.com/moby/mobyPACKAGE