CVE-2021-21284
JSON

6.8medium

privilege escalation in Moby

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.08% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7452-xqpj-6rpc

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

Product or packageVersionsReported by
moby moby< 19.03.15, >= 20.0.0, < 20.10.3CVE List
github.com/moby/moby (Go)before 19.3.15, from 20.10.0-beta1 before 20.10.3GitHub Advisory Database
docker dockerbefore 19.03.15, from 20.0.0 before 20.10.3NVD
debian debian_linux10.0NVD
netapp e-series_santricity_os_controllerfrom 11.0.0 up to 11.60.3NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
NVD6.8medium CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
NVD2.7low CVSS:2.0AV:A/AC:L/Au:S/C:N/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

Patches

Versions 20.10.3 and 19.03.15 contain patches that prevent privilege escalation from remapped user.

Credits

Maintainers would like to thank Alex Chapman for discovering the vulnerability; @awprice, @nathanburrell, @raulgomis, @chris-walz, @erin-jensby, @bassmatt, @mark-adams, @dbaxa for working on it and Zac Ellis for responsibly disclosing it to security@docker.com

NVD (es)

En Docker versiones anteriores a 9.03.15, 20.10.3, se presenta una vulnerabilidad que involucra la opción --userns-remap en la que un acceso a una root reasignada permite una escalada de privilegios a la root actual.&#xa0;Cuando se usa "--userns-remap", si el usuario root en el espacio de nombres reasignado tiene acceso al sistema de archivos del host, puede modificar archivos en "/var/lib/docker/(remapping)" que causa la escritura de archivos con privilegios extendidos.&#xa0;Las versiones 20.10.3 y 19.03.15 contienen parches que evitan una escalada de privilegios del usuario reasignado

References

https://docs.docker.com/engine/release-notes/#20103release-notes, vendor-advisory, web
https://github.com/moby/moby/releases/tag/v20.10.3release-notes, third-party-advisory, web
https://github.com/moby/moby/releases/tag/v19.03.15release-notes, third-party-advisory, web
https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpcthird-party-advisory, web
https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7cpatch, third-party-advisory, web
https://security.netapp.com/advisory/ntap-20210226-0005/third-party-advisory
https://www.debian.org/security/2021/dsa-4865third-party-advisory, vendor-advisory, web
https://security.gentoo.org/glsa/202107-23patch, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-21284advisory
https://security.netapp.com/advisory/ntap-20210226-0005web

Sources

SourceRecordLicence
CVE ListCVE-2021-21284 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-7452-xqpj-6rpc changed 2026-09-10CC-BY-4.0
NVDCVE-2021-21284 changed 2026-06-17Public domain