CVE-2021-21284Docker
Medium 6.8
Follow: this CVE · Docker · Docker We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 6.8
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 66
- Auth required
- Yes
- Published
- Feb 2, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Docker.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/moby/moby |
< 19.3.15 |
19.3.15 |
go get github.com/moby/moby@v19.3.15 |
| Go | github.com/moby/moby |
≥ 20.10.0-beta1 < 20.10.3 |
20.10.3 |
go get github.com/moby/moby@v20.10.3 |
Per OSV / GitHub Advisories (GHSA-7452-xqpj-6rpc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| docker | docker | < 19.03.15 |
| docker | docker | ≥ 20.0.0 < 20.10.3 |
| debian | debian_linux | 10.0 |
| netapp | e-series_santricity_os_controller | ≥ 11.0.0 ≤ 11.60.3 |
Official sources
References
Links published by the sources. Open them with care.
- docs.docker.com Release Notes Vendor Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- security.gentoo.org Patch Third Party Advisory
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory