Skip to content

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

MediumCVSS 6.3 EPSS 2.8%
Published
Updated
Exploit status
No public exploit known
Technology
DockerUbuntuDebian

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.

Upgrade path

22 packages: 20 fixed.

PackageAffectedFixed inStatus
alpine/docker(Alpine v3.14) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.15) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.16) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.17) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.18) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.19) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.20) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.21) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.22) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.23) < 20.10.9-r0 20.10.9-r0 Fixed
alpine/docker(Alpine v3.24) < 20.10.9-r0 20.10.9-r0 Fixed
debian/docker.io(Debian 12) < 20.10.10+dfsg1-1 20.10.10+dfsg1-1 Fixed
debian/docker.io(Debian 13) < 20.10.10+dfsg1-1 20.10.10+dfsg1-1 Fixed
debian/docker.io(Debian 14) < 20.10.10+dfsg1-1 20.10.10+dfsg1-1 Fixed
docker github.com/docker/docker(Go) < 20.10.9; < 20.10.9+incompatible 20.10.9, 20.10.9+incompatible Fixed
moby(Go) < 20.10.9; < 20.10.9+incompatible 20.10.9, 20.10.9+incompatible Fixed
mobyproject moby < 20.10.9 20.10.9 Fixed
ubuntu/docker.io(Ubuntu 18.04) < 20.10.7-0ubuntu5~18.04.2; = 1.13.1-0ubuntu6; = 17.03.2-0ubuntu1; = 17.03.2-0ubuntu3 +16 more 20.10.7-0ubuntu5~18.04.2 Fixed
ubuntu/docker.io(Ubuntu 20.04) < 20.10.7-0ubuntu5~20.04.1; = 19.03.2-0ubuntu1; = 19.03.6-0ubuntu1; = 19.03.8-0ubuntu1 +7 more 20.10.7-0ubuntu5~20.04.1 Fixed
ubuntu/docker.io(Ubuntu 22.04) < 20.10.7-0ubuntu5 20.10.7-0ubuntu5 Fixed
fedoraproject fedora = 34; = 35 No fix listed Versions listed
moby = < 20.10.9 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
moby(Go) < 20.10.9 20.10.9
docker github.com/docker/docker(Go) < 20.10.9 20.10.9
docker github.com/docker/docker(Go) < 20.10.9+incompatible 20.10.9+incompatible
moby(Go) < 20.10.9+incompatible 20.10.9+incompatible
debian/docker.io(Debian:12) < 20.10.10+dfsg1-1 20.10.10+dfsg1-1
debian/docker.io(Debian:13) < 20.10.10+dfsg1-1 20.10.10+dfsg1-1
debian/docker.io(Debian:14) < 20.10.10+dfsg1-1 20.10.10+dfsg1-1
ubuntu/docker.io(Ubuntu:22.04) < 20.10.7-0ubuntu5 20.10.7-0ubuntu5
mobyproject moby < 20.10.9 20.10.9
fedoraproject fedora = 34 No fix listed
fedoraproject fedora = 35 No fix listed
alpine/docker(Alpine:v3.14) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.15) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.16) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.17) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.18) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.19) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.20) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.21) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.22) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.23) < 20.10.9-r0 20.10.9-r0
alpine/docker(Alpine:v3.24) < 20.10.9-r0 20.10.9-r0
moby = < 20.10.9 No fix listed
ubuntu/docker.io(Ubuntu:18.04) < 20.10.7-0ubuntu5~18.04.2 20.10.7-0ubuntu5~18.04.2
ubuntu/docker.io(Ubuntu:18.04) = 1.13.1-0ubuntu6 No fix listed
Show 29 more
ProductAffected versionsFixed in
ubuntu/docker.io(Ubuntu:18.04) = 17.03.2-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 17.03.2-0ubuntu3 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 17.03.2-0ubuntu5 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 17.12.1-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.06.1-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.06.1-0ubuntu1.2~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.09.2-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.09.5-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.09.7-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.09.7-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 18.09.7-0ubuntu1~18.04.4 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 19.03.6-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 19.03.6-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 19.03.6-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 20.10.2-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 20.10.2-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 20.10.7-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:18.04) = 20.10.7-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:20.04) < 20.10.7-0ubuntu5~20.04.1 20.10.7-0ubuntu5~20.04.1
ubuntu/docker.io(Ubuntu:20.04) = 19.03.2-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 19.03.6-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 19.03.8-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 19.03.8-0ubuntu1.20.04 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 19.03.8-0ubuntu1.20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 19.03.8-0ubuntu1.20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 20.10.2-0ubuntu1~20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 20.10.2-0ubuntu1~20.04.3 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 20.10.7-0ubuntu1~20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:20.04) = 20.10.7-0ubuntu1~20.04.2 No fix listed

References