CVE-2021-41091Insufficiently restricted permissions on data directory in Docker Engine
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.
What to do
Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | docker.io | Fixed | 20.10.7-0ubuntu5 | UBUNTU-CVE-2021-41091 |
| Ubuntu 20.04 | docker.io | Fixed | 20.10.7-0ubuntu5~20.04.1 | UBUNTU-CVE-2021-41091 |
| Ubuntu 18.04 | docker.io | Fixed | 20.10.7-0ubuntu5~18.04.2 | UBUNTU-CVE-2021-41091 |
| Ubuntu 16.04 | docker.io | Fix pending | ||
| Ubuntu 14.04 | docker.io | Fix pending | ||
| Debian 14 | docker.io | Fixed | 20.10.10+dfsg1-1 | DEBIAN-CVE-2021-41091 |
| Debian 13 | docker.io | Fixed | 20.10.10+dfsg1-1 | DEBIAN-CVE-2021-41091 |
| Debian 12 | docker.io | Fixed | 20.10.10+dfsg1-1 | DEBIAN-CVE-2021-41091 |
| Red Hat Enterprise Linux 7 | docker | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.23 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.22 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.21 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.20 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.19 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.18 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.17 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.16 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.15 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Alpine Linux 3.14 | docker | Fixed | 20.10.9-r0 | ALPINE-CVE-2021-41091 |
| Go library | github.com/docker/docker | Fixed | 20.10.9+incompatible | GHSA-3fwx-pjgw-3558 |
| Go library | github.com/moby/moby | Fixed | 20.10.9+incompatible | GHSA-3fwx-pjgw-3558 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- moby: affected: < 20.10.9
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/moby/moby/security/advisories/GHSA-3fwx-pjgw-3558
- https://github.com/moby/moby/commit/f0ab919f518c47240ea0e72d0999576bb8008e64
- 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://cert-portal.siemens.com/productcert/pdf/ssa-222547.pdf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.