{"id":"CVE-2021-21284","aliases":["CVE-2021-21284","GHSA-7452-xqpj-6rpc"],"related":[],"kind":"vulnerability","state":"published","title":"privilege escalation in Moby","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen 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.\n\n### Patches\n\nVersions 20.10.3 and 19.03.15 contain patches that prevent privilege escalation from remapped user.\n\n### Credits\n\nMaintainers 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-02-02T17:55:22.000Z","modified":"2026-09-10T03:50:09.391Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:A/AC:L/Au:S/C:N/I:P/A:N","score":2.7,"rating":"LOW"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 19.03.15","status":"affected"},{"version":">= 20.0.0, < 20.10.3","status":"affected"}],"vendor":"moby","product":"moby","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"19.3.15"}],"ecosystem":"Go","package":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"20.10.0-beta1","status":"affected","fixed":"20.10.3"}],"ecosystem":"Go","package":"github.com/moby/moby","purl":"pkg:golang/github.com/moby/moby","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"19.03.15"},{"status":"affected","introduced":"20.0.0","fixed":"20.10.3"}],"vendor":"docker","product":"docker","cpe":"cpe:2.3:a:docker:docker:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"11.0.0","lastAffected":"11.60.3"}],"vendor":"netapp","product":"e-series_santricity_os_controller","cpe":"cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://docs.docker.com/engine/release-notes/#20103","tags":["release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moby/moby/releases/tag/v20.10.3","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moby/moby/releases/tag/v19.03.15","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210226-0005/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2021/dsa-4865","tags":["third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.gentoo.org/glsa/202107-23","tags":["patch","third-party-advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21284","tags":["advisory"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210226-0005","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21284","url":"https://www.cve.org/CVERecord?id=CVE-2021-21284","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.042Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7452-xqpj-6rpc","url":"https://github.com/advisories/GHSA-7452-xqpj-6rpc","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.391Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21284","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21284","licence":"Public domain","modified":"2026-06-17T03:35:11.603Z"}],"updatedAt":"2026-11-25T22:57:59.774Z","epss":{"score":0.01078,"percentile":0.66022,"date":"2026-12-01T12:00:22.000Z"}}