PT-2021-7961 · Docker+2 · Moby+3

Joan Bruguera

·

Published

2021-09-09

·

Updated

2025-10-13

·

CVE-2021-41091

CVSS v3.1

6.3

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions Moby (Docker Engine) versions prior to 20.10.9
Description 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.
Recommendations For Moby (Docker Engine) versions prior to 20.10.9, update to version 20.10.9 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.

Exploit

Fix

Incorrect Permission

Improper Preservation of Permissions

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
BDU:2023-07629
CVE-2021-41091
GHSA-3FWX-PJGW-3558
GO-2024-2500
MGASA-2021-0500
OESA-2022-1739
OPENSUSE-SU-2021:1404-1
OPENSUSE-SU-2021:3506-1
OPENSUSE-SU-2021_1404-1
OPENSUSE-SU-2021_3506-1
OPENSUSE-SU-2022:0334-1
OPENSUSE-SU-2022_0334-1
SUSE-SU-2021:3336-1
SUSE-SU-2021:3506-1
SUSE-SU-2021_3336-1
SUSE-SU-2021_3506-1
SUSE-SU-2022:0213-1
SUSE-SU-2022:0334-1
SUSE-SU-2022_0213-1
SUSE-SU-2022_0334-1
SUSE-SU-2025:03540-1
SUSE-SU-2025:03545-1
SUSE-SU-2025_03540-1
SUSE-SU-2025_03545-1

Affected Products

Astra Linux
Docker
Moby
Suse