CVE-2021-41091
Insufficiently restricted permissions on data directory in Docker Engine
Also known as GHSA-3fwx-pjgw-3558, GO-2024-2500
Mitigation
- Upgrade github.com/moby/moby to one of 20.10.9, 20.10.9+incompatible (or later in the same release line).
- Upgrade github.com/docker/docker to one of 20.10.9, 20.10.9+incompatible (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/moby/moby (< 20.10.9)
- Projects that depend on Go package github.com/docker/docker (< 20.10.9)
- Anyone running moby < 20.10.9
Vulnerability facts
- Affected
- github.com/moby/moby < 20.10.9; github.com/docker/docker < 20.10.9
- Fixed in
- 20.10.9, 20.10.9+incompatible
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 2.85% chance of exploitation in 30 days (percentile 87, 2026-11-26)
- CWE
- CWE-281
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/moby/moby | < 20.10.9 | 20.10.9, 20.10.9+incompatible | osv |
| Go github.com/docker/docker | < 20.10.9 | 20.10.9, 20.10.9+incompatible | osv |
| moby | < 20.10.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-41091. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-41091.md Affected: github.com/moby/moby < 20.10.9; github.com/docker/docker < 20.10.9 Fixed in: 20.10.9, 20.10.9+incompatible Steps: 1. Search this machine and project for github.com/moby/moby (Go), github.com/docker/docker (Go), moby: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/moby/moby/security/advisories/GHSA-3fwx-pjgw-3558
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/
- https://nvd.nist.gov/vuln/detail/CVE-2021-41091
Other
- https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
- https://github.com/moby/moby
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB
FAQ
Is CVE-2021-41091 being exploited?
There is no confirmed exploitation: CVE-2021-41091 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.85% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-41091?
Medium: CVSS 6.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-41091?
github.com/moby/moby < 20.10.9; github.com/docker/docker < 20.10.9.
Is there a fix for CVE-2021-41091?
Yes. Fixed in 20.10.9, 20.10.9+incompatible. Upgrade github.com/moby/moby to one of 20.10.9, 20.10.9+incompatible (or later in the same release line). Upgrade github.com/docker/docker to one of 20.10.9, 20.10.9+incompatible (or later in the same release line).
How do I check if I'm affected by CVE-2021-41091?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.