CVE-2021-21284

medium
Published 2024-01-31 ยท Modified 2026-03-13
CVSS v3
โ€”
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
5.5

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 1:20.10.3-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 20.10.3+dfsg1-1
sid Fixed 20.10.3+dfsg1-1
forky Fixed 20.10.3+dfsg1-1
bullseye Fixed 20.10.3+dfsg1-1
bookworm Fixed 20.10.3+dfsg1-1

Package impact

EcosystemPackageVulnerableFixed
golang Gogithub.com/moby/moby<19.3.1519.3.15
golang Gogithub.com/moby/moby>=20.10.0-beta1,<20.10.320.10.3

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.