# CVE-2021-41091: Insufficiently restricted permissions on data directory in Docker Engine

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.85%, higher than 87% of CVEs (2026-12-01)
- Published: 2021-10-04T20:20:09.000Z
- Modified: 2026-09-10T03:50:04.752Z
- Also known as: GHSA-3fwx-pjgw-3558, GO-2024-2500
- Related: CGA-2439-6r3v-c8xw
- Weaknesses: CWE-281, CWE-732
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- moby moby: < 20.10.9
- github.com/moby/moby (Go): before 20.10.9; before 20.10.9+incompatible
- github.com/docker/docker (Go): before 20.10.9; before 20.10.9+incompatible
- mobyproject moby: before 20.10.9
- fedoraproject fedora: 34; 35

## Every score

- GitHub_M: 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`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: 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`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/moby/moby/security/advisories/GHSA-3fwx-pjgw-3558> (advisory, third-party-advisory, web)
- <https://github.com/moby/moby/commit/f0ab919f518c47240ea0e72d0999576bb8008e64> (fix, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB/> (vendor-advisory)
- <https://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41091> (advisory)
- <https://github.com/moby/moby> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B5Q6G6I4W5COQE25QMC7FJY3I3PAYFBB> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZNFADTCHHYWVM6W4NJ6CB4FNFM2VMBIB> (web)

## Sources

- CVE List: [CVE-2021-41091](https://www.cve.org/CVERecord?id=CVE-2021-41091), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3fwx-pjgw-3558](https://github.com/advisories/GHSA-3fwx-pjgw-3558), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2500](https://pkg.go.dev/vuln/GO-2024-2500), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2021-41091](https://nvd.nist.gov/vuln/detail/CVE-2021-41091), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41091 · Whole record: https://cve.day/CVE-2021-41091.json · Rebuilt by cve.day 2026-11-25T22:58:04.295Z
