← back
CVE-2021-21284

privilege escalation in Moby

CVSS 6.8 MEDIUMEPSS 1.1%CWE-22
In short

Docker's user namespace remapping feature (--userns-remap) has a flaw where a remapped root user can gain real root privileges on the host by modifying files in the Docker directory. This is serious because it defeats the security isolation that this feature is supposed to provide.

Technical detail

The vulnerability exists in Docker's user namespace remapping implementation where a remapped root user with host filesystem access can escalate privileges to real root by manipulating files in /var/lib/docker/<remapping>. The attack requires the --userns-remap option to be enabled and the remapped user to have host filesystem access. Patches in versions 20.10.3 and 19.03.15 restrict privilege escalation vectors from the remapped namespace.

Summary generated and translated by AI from the official description.
In Docker before versions 9.03.15, 20.10.3 there is a vulnerability involving the --userns-remap option in which access to remapped root allows privilege escalation to real root. When using "--userns-remap", if the root user in the remapped namespace has access to the host filesystem they can modify files under "/var/lib/docker/<remapping>" that cause writing files with extended privileges. Versions 20.10.3 and 19.03.15 contain patches that prevent privilege escalation from remapped user.
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
Affected products
moby · moby

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →