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 package | Versions | Reported by |
|---|---|---|
| moby moby | < 19.03.15, >= 20.0.0, < 20.10.3 | CVE List |
| github.com/moby/moby (Go) | before 19.3.15, from 20.10.0-beta1 before 20.10.3 | GitHub Advisory Database |
| docker docker | before 19.03.15, from 20.0.0 before 20.10.3 | NVD |
| debian debian_linux | 10.0 | NVD |
| netapp e-series_santricity_os_controller | from 11.0.0 up to 11.60.3 | NVD |
All scores
| GitHub_M | 6.8medium CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVD | 2.7low CVSS:2.0 | AV: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. 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. 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/#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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21284 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7452-xqpj-6rpc changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-21284 changed 2026-06-17 | Public domain |