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, 65.6th percentile (scored ); unchanged over 30 days. About EPSS.
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 exploits and proof-of-concept code
Also mentioned in 6 other repositories (adavarski/HomeLab-k8s-DevSecOps-playground, adavarski/HomeLab-Proxmox-k8s-DevSecOps-playground, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
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)
- DSA-4865 (vendor-advisory, Third Party Advisory)
- GLSA-202107-23 (vendor-advisory, Patch, Third Party Advisory)