{"api_version":"1","generated_at":"2026-04-23T01:32:45+00:00","cve":"CVE-2021-21284","urls":{"html":"https://cve.report/CVE-2021-21284","api":"https://cve.report/api/cve/CVE-2021-21284.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21284","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21284"},"summary":{"title":"CVE-2021-21284","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-02-02 18:15:00","updated_at":"2022-04-29 19:22:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/moby/moby/releases/tag/v20.10.3","name":"https://github.com/moby/moby/releases/tag/v20.10.3","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release v20.10.3 · moby/moby · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c","name":"https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Merge pull request #41964 from thaJeztah/CVE-2021-21284_master · moby/moby@64bd448 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://docs.docker.com/engine/release-notes/#20103","name":"https://docs.docker.com/engine/release-notes/#20103","refsource":"MISC","tags":["Release Notes","Vendor Advisory"],"title":"Docker Engine release notes | Docker Documentation","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20210226-0005/","name":"https://security.netapp.com/advisory/ntap-20210226-0005/","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"February 2021 Docker Vulnerabilities in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://github.com/moby/moby/releases/tag/v19.03.15","name":"https://github.com/moby/moby/releases/tag/v19.03.15","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release v19.03.15 · moby/moby · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc","name":"https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc","refsource":"CONFIRM","tags":["Third Party Advisory"],"title":"Access to remapped root allows privilege escalation to real root · Advisory · moby/moby · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.debian.org/security/2021/dsa-4865","name":"DSA-4865","refsource":"DEBIAN","tags":["Third Party Advisory"],"title":"Debian -- Security Information -- DSA-4865-1 docker.io","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/202107-23","name":"GLSA-202107-23","refsource":"GENTOO","tags":[],"title":"Docker: Multiple vulnerabilities (GLSA 202107-23) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21284","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21284","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"21284","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21284","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"10.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21284","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"docker","cpe5":"docker","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21284","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"docker","cpe5":"docker","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21284","vulnerable":"1","versionEndIncluding":"11.60.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"netapp","cpe5":"e-series_santricity_os_controller","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-21284","qid":"174971","title":"SUSE Enterprise Linux Security Update for containerd, docker, runc (SUSE-SU-2021:1458-1)"},{"cve":"CVE-2021-21284","qid":"179597","title":"Debian Security Update for docker.io (CVE-2021-21284)"},{"cve":"CVE-2021-21284","qid":"352873","title":"Amazon Linux Security Advisory for docker : ALAS-2021-1550"},{"cve":"CVE-2021-21284","qid":"353057","title":"Amazon Linux Security Advisory for docker : ALAS2NITRO-ENCLAVES-2021-001"},{"cve":"CVE-2021-21284","qid":"353070","title":"Amazon Linux Security Advisory for docker : ALAS2DOCKER-2021-001"},{"cve":"CVE-2021-21284","qid":"356561","title":"Amazon Linux Security Advisory for docker : ALAS2ECS-2023-015"},{"cve":"CVE-2021-21284","qid":"500869","title":"Alpine Linux Security Update for docker"},{"cve":"CVE-2021-21284","qid":"504678","title":"Alpine Linux Security Update for docker"},{"cve":"CVE-2021-21284","qid":"6140344","title":"AWS Bottlerocket Security Update for docker (GHSA-9hr9-47xc-fjgg)"},{"cve":"CVE-2021-21284","qid":"671467","title":"EulerOS Security Update for docker-engine (EulerOS-SA-2022-1424)"},{"cve":"CVE-2021-21284","qid":"671480","title":"EulerOS Security Update for docker-engine (EulerOS-SA-2022-1445)"},{"cve":"CVE-2021-21284","qid":"671627","title":"EulerOS Security Update for docker-engine (EulerOS-SA-2022-1644)"},{"cve":"CVE-2021-21284","qid":"671641","title":"EulerOS Security Update for docker-engine (EulerOS-SA-2022-1658)"},{"cve":"CVE-2021-21284","qid":"710053","title":"Gentoo Linux Docker Multiple vulnerabilities (GLSA 202107-23)"},{"cve":"CVE-2021-21284","qid":"750155","title":"SUSE Enterprise Linux Security Update for containerd, docker, runc (SUSE-SU-2021:1954-1)"},{"cve":"CVE-2021-21284","qid":"750363","title":"OpenSUSE Security Update for containerd, docker, docker-runc, golang-github-docker-libnetwork (openSUSE-SU-2021:0278-1)"},{"cve":"CVE-2021-21284","qid":"750648","title":"OpenSUSE Security Update for containerd, docker, runc (openSUSE-SU-2021:0878-1)"},{"cve":"CVE-2021-21284","qid":"750812","title":"OpenSUSE Security Update for containerd, docker, runc (openSUSE-SU-2021:1954-1)"},{"cve":"CVE-2021-21284","qid":"900005","title":"CBL-Mariner Linux Security Update for moby-buildx 0.4.1"},{"cve":"CVE-2021-21284","qid":"900183","title":"CBL-Mariner Linux Security Update for moby-engine 19.03.15"},{"cve":"CVE-2021-21284","qid":"900184","title":"CBL-Mariner Linux Security Update for moby-cli 19.03.15"},{"cve":"CVE-2021-21284","qid":"903410","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for moby-buildx (4426)"},{"cve":"CVE-2021-21284","qid":"903630","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for moby-engine (4568)"},{"cve":"CVE-2021-21284","qid":"903637","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for moby-cli (4428)"},{"cve":"CVE-2021-21284","qid":"997040","title":"GO (Go) Security Update for github.com/moby/moby (GHSA-7452-xqpj-6rpc)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21284","STATE":"PUBLIC","TITLE":"privilege escalation in Moby"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"moby","version":{"version_data":[{"version_value":"< 19.03.15"},{"version_value":">= 20.0.0, < 20.10.3"}]}}]},"vendor_name":"moby"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"ADJACENT_NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://docs.docker.com/engine/release-notes/#20103","refsource":"MISC","url":"https://docs.docker.com/engine/release-notes/#20103"},{"name":"https://github.com/moby/moby/releases/tag/v20.10.3","refsource":"MISC","url":"https://github.com/moby/moby/releases/tag/v20.10.3"},{"name":"https://github.com/moby/moby/releases/tag/v19.03.15","refsource":"MISC","url":"https://github.com/moby/moby/releases/tag/v19.03.15"},{"name":"https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc","refsource":"CONFIRM","url":"https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc"},{"name":"https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c","refsource":"MISC","url":"https://github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20210226-0005/","url":"https://security.netapp.com/advisory/ntap-20210226-0005/"},{"refsource":"DEBIAN","name":"DSA-4865","url":"https://www.debian.org/security/2021/dsa-4865"},{"refsource":"GENTOO","name":"GLSA-202107-23","url":"https://security.gentoo.org/glsa/202107-23"}]},"source":{"advisory":"GHSA-7452-xqpj-6rpc","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2021-02-02 18:15:00","lastModifiedDate":"2022-04-29 19:22:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.3,"impactScore":4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:A/AC:L/Au:S/C:N/I:P/A:N","accessVector":"ADJACENT_NETWORK","accessComplexity":"LOW","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":2.7},"severity":"LOW","exploitabilityScore":5.1,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:docker:docker:*:*:*:*:*:*:*:*","versionStartIncluding":"20.0.0","versionEndExcluding":"20.10.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:docker:docker:*:*:*:*:*:*:*:*","versionEndExcluding":"19.03.15","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:*","versionStartIncluding":"11.0.0","versionEndIncluding":"11.60.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21284","Ordinal":"195410","Title":"CVE-2021-21284","CVE":"CVE-2021-21284","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21284","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21284","Ordinal":"2","NoteData":"2021-02-02","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21284","Ordinal":"3","NoteData":"2021-07-10","Type":"Other","Title":"Modified"}]}}}