CVE-2021-21284privilege escalation in Moby
- 6.8MediumCVSS base score
- 1.1%Exploitation in 30 daysEPSS · top 34% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 42 days later
· 42 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.8 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium6.8 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 1.1% · top 34% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/moby/mobyGHSA-7452-xqpj-6rpc (opens in a new tab)
References
References8
- https://docs.docker.com/engine/release-notes/#20103 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/moby/moby/releases/tag/v20.10.3 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/moby/moby/releases/tag/v19.03.15 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20210226-0005/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-4865 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- GLSA-202107-23 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0280 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-7452-xqpj-6rpc (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21284)Record last updated .