Path Traversal in Docker
CVE-2021-21284
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N.
EPSS exploit prediction
EPSS: 0.011 (63.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 63rd percentile — 63.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
- Docker
- Moby — versions < 19.03.15, >= 20.0.0, < 20.10.3
- NetApp E-Series Santricity OS Controller
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- docs.docker.com/engine/release-notes/ (Release Notes, Vendor Advisory)
- github.com/moby/moby/releases/tag/v20.10.3 (Third Party Advisory, Release Notes)
- github.com/moby/moby/releases/tag/v19.03.15 (Third Party Advisory, Release Notes)
- github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc (Third Party Advisory)
- github.com/moby/moby/commit/64bd4485b3a66a597c02c95f5776395e540b2c7c (Patch, Third Party Advisory)
- security.netapp.com/advisory/ntap-20210226-0005/ (Third Party Advisory)
- www.debian.org/security/2021/dsa-4865 (vendor-advisory, Third Party Advisory)
- security.gentoo.org/glsa/202107-23 (vendor-advisory, Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-21284?
- CVE-2021-21284 is a medium-severity vulnerability in Docker, classified under Path Traversal. CVSS score: 6.8/10. Published 2021-02-02.
- How severe is CVE-2021-21284?
- Medium severity. CVSS v3 base score is 6.8 out of 10.
- Is CVE-2021-21284 known to be exploited?
- 6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.