# CVE-2021-21284: privilege escalation in Moby

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-02-02T17:55:22.000Z
- Modified: 2026-09-10T03:50:09.391Z
- Also known as: GHSA-7452-xqpj-6rpc
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- moby moby: < 19.03.15; >= 20.0.0, < 20.10.3
- github.com/moby/moby (Go): before 19.3.15; from 20.10.0-beta1 before 20.10.3
- docker docker: before 19.03.15; from 20.0.0 before 20.10.3
- debian debian_linux: 10.0
- netapp e-series_santricity_os_controller: from 11.0.0 up to 11.60.3

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:2.0 2.7 Low `AV:A/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://docs.docker.com/engine/release-notes/#20103> (release-notes, vendor-advisory, web)
- <https://github.com/moby/moby/releases/tag/v20.10.3> (release-notes, 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/security/advisories/GHSA-7452-xqpj-6rpc> (third-party-advisory, web)
- <https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210226-0005/> (third-party-advisory)
- <https://www.debian.org/security/2021/dsa-4865> (third-party-advisory, vendor-advisory, web)
- <https://security.gentoo.org/glsa/202107-23> (patch, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21284> (advisory)
- <https://security.netapp.com/advisory/ntap-20210226-0005> (web)

## Sources

- CVE List: [CVE-2021-21284](https://www.cve.org/CVERecord?id=CVE-2021-21284), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-7452-xqpj-6rpc](https://github.com/advisories/GHSA-7452-xqpj-6rpc), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21284](https://nvd.nist.gov/vuln/detail/CVE-2021-21284), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21284 · Whole record: https://cve.day/CVE-2021-21284.json · Rebuilt by cve.day 2026-11-25T22:57:59.774Z
