CVE-2021-21284
MEDIUM 6.8CVSS 3.1moby Access to remapped root allows privilege escalation to real root
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.
- Published
- 2 Feb 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-7452-xqpj-6rpc
- Sources
- NVDJSONOSV GHSA-7452-xqpj-6rpcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.7 | AV:A/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | docker | dockercpe:2.3:a:docker:docker:*:*:*:*:*:*:*:* |
< 19.03.15 | 19.03.15 |
| NVD | docker | dockercpe:2.3:a:docker:docker:*:*:*:*:*:*:*:* |
>= 20.0.0, < 20.10.3 | 20.10.3 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | netapp | e-series_santricity_os_controllercpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:* |
>= 11.0.0, <= 11.60.3 | |
| OSV | Go | github.com/moby/moby | < 19.3.15 | 19.3.15 |
| OSV | Go | github.com/moby/moby | >= 20.10.0-beta1, < 20.10.3 | 20.10.3 |
References
- https://docs.docker.com/engine/release-notes/#20103 · Release Notes, Vendor Advisory, WEB
- https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c · Patch, Third Party Advisory, WEB
- https://github.com/moby/moby/releases/tag/v19.03.15 · Release Notes, Third Party Advisory, WEB
- https://github.com/moby/moby/releases/tag/v20.10.3 · Release Notes, Third Party Advisory, WEB
- https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc · Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202107-23 · Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210226-0005/ · Third Party Advisory, WEB
- https://www.debian.org/security/2021/dsa-4865 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21284 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 2 Feb 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 Jan 2024)