SecurityContext

CVE-2021-21284: Docker - Privilege Escalation

  • Cve: CVE-2021-21284
  • Name: Docker - Privilege Escalation
  • 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.
  • Impact: Attackers can escalate privileges to real root, potentially leading to full system compromise.
  • Remediation: Update Docker to version 20.10.3 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: logged_in
  • Requirements: Using --userns-remap with root access in remapped namespace
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
  • Epss score: 0.01078
  • Epss percentile: 0.65776
  • Assignee: [email protected]
  • Published at: 2021-02-02T18:15:11Z
  • Age in days: 2121
  • Modified at: 2026-06-17T03:35:11Z
  • Patch available: yes
  • References total: 8
  • Products total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-21284
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7cPatch, Third Party Advisory
https://security.gentoo.org/glsa/202107-23Patch, Third Party Advisory
https://docs.docker.com/engine/release-notes/#20103Release Notes, Vendor Advisory
https://github.com/moby/moby/releases/tag/v19.03.15Release Notes, Third Party Advisory
https://github.com/moby/moby/releases/tag/v20.10.3Release Notes, Third Party Advisory
https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpcThird Party Advisory
https://security.netapp.com/advisory/ntap-20210226-0005/Third Party Advisory
https://www.debian.org/security/2021/dsa-4865Third Party Advisory

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
docker:docker>= 20.0.0, < 20.10.3; < 19.03.15/v1/products/docker/docker
debian:debian_linux= 10.0/v1/products/debian/debian_linux
netapp:e-series_santricity_os_controller>= 11.0.0, <= 11.60.3/v1/products/netapp/e-series_santricity_os_controller

Projects

RepositoryLink kindsIndexedUrl
moby/mobycommit, releases, security_advisoryyes/v1/repositories/moby/moby

Index

  • Repositories: 1
  • Packages: 1
  • Checked, none or zero: repositories high signal

Exploitation

  • Authentication required: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports