CVE-2021-21284
Docker vulnerability analysis and mitigation

Overview

CVE-2021-21284 affects Docker versions prior to 19.03.15 and 20.10.3. The vulnerability involves the --userns-remap option, where access to remapped root allows privilege escalation to real root. When using this option, if the root user in the remapped namespace has access to the host filesystem, they can modify files under /var/lib/docker/ that cause writing files with extended privileges (GitHub Advisory).

Technical details

The vulnerability has a CVSS v3.1 score of 6.8 (MEDIUM) with a vector of CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N. The issue specifically relates to file permissions and privilege management in Docker's user namespace remapping functionality. The vulnerability allows a user with remapped root access to escalate privileges to real root through manipulation of files in the Docker state directory (NetApp Advisory).

Impact

Successful exploitation of this vulnerability could lead to privilege escalation, allowing a remapped root user to gain full root access on the host system. This could potentially compromise the security of the entire host system by allowing unauthorized access to and modification of sensitive files (Rapid7).

Exploitability

The vulnerability requires local access and the use of the --userns-remap option in Docker. An attacker would need to have access to a container with remapped root privileges to exploit this vulnerability. The attack vector is considered adjacent (AV:A) with low attack complexity (AC:L) (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been patched in Docker versions 19.03.15 and 20.10.3. Users should upgrade to these or later versions to prevent exploitation. The patches prevent privilege escalation from remapped users by implementing proper file permission controls (GitHub Release, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Docker vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56852HIGH7.5
  • cAdvisor logocAdvisor
  • amazon-cloudwatch-agent
NoYesJul 21, 2026
CVE-2026-15793HIGH7.3
  • Docker logoDocker
  • runfinch-finch
NoYesJul 21, 2026
CVE-2026-17106HIGH7.1
  • Docker logoDocker
  • kubescape
NoYesAug 18, 2026
CVE-2026-15792MEDIUM6
  • Docker logoDocker
  • buildkit
NoYesJul 21, 2026
CVE-2026-15791LOW1.8
  • Docker logoDocker
  • runfinch-finch
NoYesJul 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management