Vulnerability · Published Feb 2, 2021 · Assigned by GitHub_M

CVE-2021-21284privilege escalation in Moby

Medium 6.8

In plain English

A medium-severity path traversal in moby from moby. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)1.1%top 34.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20docker20.10.3-r0ALPINE-CVE-2021-21284
Alpine:v3.21docker20.10.3-r0ALPINE-CVE-2021-21284
Alpine:v3.22docker20.10.3-r0ALPINE-CVE-2021-21284
Alpine:v3.23docker20.10.3-r0ALPINE-CVE-2021-21284
Alpine:v3.24docker20.10.3-r0ALPINE-CVE-2021-21284
Debian:12docker.io20.10.3+dfsg1-1DEBIAN-CVE-2021-21284
Debian:13docker.io20.10.3+dfsg1-1DEBIAN-CVE-2021-21284
Debian:14docker.io20.10.3+dfsg1-1DEBIAN-CVE-2021-21284
Gogithub.com/moby/moby20.10.3GHSA-7452-xqpj-6rpc
Gogithub.com/moby/moby19.3.15GHSA-7452-xqpj-6rpc

Affected products (as reported)

VendorProductVersions
moby moby < 19.03.15>= 20.0.0, < 20.10.3

Weakness: CWE-22 · Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

References