CVE-2021-41091

Medium

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.

SeverityMedium
CVSS6.3
Exploit probability—
ProductMoby
PublishedOct 4, 2021
First seenOct 4, 2021
Weakness typeCWE-281CWE-281

How to fix

Update
  • mobyproject moby20.10.9 or later
  • github.com/moby/moby20.10.9, 20.10.9+incompatible or later
  • github.com/docker/docker20.10.9, 20.10.9+incompatible or later

Affected products

ProductAffected versionsFixed in
mobyproject mobyv < 20.10.920.10.9
fedoraproject fedora34, 35—
github.com/moby/mobyGov < 20.10.9, v < 20.10.9+incompatible20.10.9, 20.10.9+incompatible
github.com/docker/dockerGov < 20.10.9, v < 20.10.9+incompatible20.10.9, 20.10.9+incompatible

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.