cve.bz

CVE-2021-21284 Path traversal

6.8 mediumEPSS 1.1%Fix available

Medium (6.8). EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/moby/moby 19.3.15, 20.10.3.

On this page
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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21284 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21284?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21284?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21284 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
docker:dockerbefore 19.03.15
docker:dockerfrom 20.0.0 before 20.10.3
debian:debian_linux10.0
netapp:e-series_santricity_os_controllerfrom 11.0.0 through 11.60.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7452-xqpj-6rpcGogithub.com/moby/moby<19.3.1519.3.15
GHSA-7452-xqpj-6rpcGogithub.com/moby/moby>=20.10.0-beta1 <20.10.320.10.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10docker.io18.09.1+dfsg1-7.1+deb10u3DSA-4865-1
Debian12, 13, 14docker.io20.10.3+dfsg1-1DEBIAN-CVE-2021-21284
Ubuntu18.04:LTSdocker.io20.10.7-0ubuntu1~18.04.1UBUNTU-CVE-2021-21284
Ubuntu20.04:LTSdocker.io20.10.7-0ubuntu1~20.04.1UBUNTU-CVE-2021-21284
UbuntuPro:16.04:LTSdocker.iono fix listedUBUNTU-CVE-2021-21284
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 14 morerunc1.0.0~rc93-1.14.2SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 morecontainerd1.4.4-5.32.1SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 13 moredocker20.10.6_ce-6.49.3SUSE-SU-2021:1954-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morecontainerd1.3.9-5.29.3SUSE-SU-2021:0435-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moredocker19.03.15_ce-6.43.3SUSE-SU-2021:0435-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moredocker-runc1.0.0rc10+gitr3981_dc9208a3303f-6.45.3SUSE-SU-2021:0435-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moregolang-github-docker-libnetwork0.7.0.1+gitr2908_55e924b8a842-4.28.3SUSE-SU-2021:0435-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 moredocker-stable24.0.9_ce-150000.1.25.1SUSE-SU-2025:03545-1
SUSELinux Enterprise Module for Containers 12containerd1.3.9-16.35.1SUSE-SU-2021:0445-1
SUSELinux Enterprise Module for Containers 12containerd1.4.4-16.38.1SUSE-SU-2021:1458-1
SUSELinux Enterprise Module for Containers 12docker19.03.15_ce-98.60.2SUSE-SU-2021:0445-1
SUSELinux Enterprise Module for Containers 12docker20.10.6_ce-98.66.1SUSE-SU-2021:1458-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2containerd1.3.9-lp152.2.3.1openSUSE-SU-2021:0278-1
openSUSELeap 15.2containerd1.4.4-lp152.2.6.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2docker19.03.15_ce-lp152.2.3.1openSUSE-SU-2021:0278-1
openSUSELeap 15.2docker20.10.6_ce-lp152.2.12.1openSUSE-SU-2021:0878-1
openSUSELeap 15.2docker-runc1.0.0rc10+gitr3981_dc9208a3303f-lp152.2.3.1openSUSE-SU-2021:0278-1
openSUSELeap 15.2fish2.7.1-lp152.5.3.1openSUSE-SU-2021:0278-1
openSUSELeap 15.2golang-github-docker-libnetwork0.7.0.1+gitr2908_55e924b8a842-lp152.2.3.1openSUSE-SU-2021:0278-1
openSUSELeap 15.2runc1.0.0~rc93-lp152.2.3.1openSUSE-SU-2021:0878-1
openSUSELeap 15.3containerd1.4.4-5.32.1openSUSE-SU-2021:1954-1
openSUSELeap 15.3docker20.10.6_ce-6.49.3openSUSE-SU-2021:1954-1
openSUSELeap 15.3runc1.0.0~rc93-1.14.2openSUSE-SU-2021:1954-1
openSUSELeap 15.6docker-stable24.0.9_ce-150000.1.25.1SUSE-SU-2025:03545-1
2 more for openSUSE in the JSON and on openSUSE's page.
Alpinev3.12, v3.13, v3.14 and 10 moredocker20.10.3-r0ALPINE-CVE-2021-21284

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7dockerOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21284.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON