
2/2/2021

31/1/2024

3/8/2024
CVE-2021-21284: privilege escalation in Moby
First published: Tue Feb 02 2021(Updated: )
### Impact
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.
### Patches
Versions 20.10.3 and 19.03.15 contain patches that prevent privilege escalation from remapped user.
### Credits
Maintainers 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
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|
debian/docker.io | | 18.09.1+dfsg1-7.1+deb10u3 20.10.5+dfsg1-1+deb11u2 20.10.24+dfsg1-1 20.10.25+dfsg1-2 |
go/github.com/moby/moby | >=20.10.0-beta1<20.10.3 | 20.10.3 |
go/github.com/moby/moby | <19.3.15 | 19.3.15 |
IBM InfoSphere Guardium z/OS | <=10.5 | |
IBM InfoSphere Guardium z/OS | <=10.6 | |
IBM InfoSphere Guardium z/OS | <=11.0 | |
IBM InfoSphere Guardium z/OS | <=11.1 | |
IBM InfoSphere Guardium z/OS | <=11.2 | |
IBM InfoSphere Guardium z/OS | <=11.3 | |
Python Docker | <19.03.15 | |
Python Docker | >=20.0.0<20.10.3 | |
Debian Linux | =10.0 | |
NetApp E-Series SANtricity OS Controller | >=11.0.0<=11.60.3 | |
Never miss a vulnerability like this again
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
Parent vulnerabilities
(Appears in the following advisories)
Frequently Asked Questions
What is the vulnerability ID for this Docker vulnerability?
The vulnerability ID for this Docker vulnerability is CVE-2021-21284.
What versions of Docker are affected by this vulnerability?
Versions before 9.03.15 and 20.10.3 of Docker are affected by this vulnerability.
What is the impact of this vulnerability?
This vulnerability allows privilege escalation to real root if the root user in the remapped namespace has access to the host filesystem.
How can I fix this vulnerability?
To fix this vulnerability, update Docker to version 9.03.15 or 20.10.3.
Where can I find more information about this vulnerability?
More information about this vulnerability can be found in the following references: [GitHub Advisory](https://github.com/moby/moby/security/advisories/GHSA-7452-xqpj-6rpc), [GitHub Commit 1](https://github.com/moby/moby/commit/1342c51d5e809d2994e6f7e490c8d2b3b12c28ae), [GitHub Commit 2](https://github.com/moby/moby/commit/5eff67a2c294b7e72607e0949ebc0de21710e4d3).
- collector/security-tracker-debian
- agent/type
- agent/remedy
- agent/severity
- agent/weakness
- agent/description
- agent/author
- collector/github-advisory-latest
- source/GitHub
- alias/GHSA-7452-xqpj-6rpc
- alias/CVE-2021-21284
- agent/software-canonical-lookup
- agent/references
- collector/github-advisory
- collector/mitre-cve
- source/MITRE
- agent/title
- agent/last-modified-date
- agent/event
- agent/first-publish-date
- agent/trending
- agent/source
- collector/ibm-support
- source/IBM
- agent/software-canonical-lookup-request
- collector/nvd-cve
- source/NVD
- agent/softwarecombine
- agent/tags
- collector/nvd-index
- package-manager/debian
- package-manager/go
- vendor/ibm
- canonical/ibm infosphere guardium z/os
- version/ibm infosphere guardium z/os/10.5
- version/ibm infosphere guardium z/os/10.6
- version/ibm infosphere guardium z/os/11.0
- version/ibm infosphere guardium z/os/11.1
- version/ibm infosphere guardium z/os/11.2
- version/ibm infosphere guardium z/os/11.3
- vendor/docker
- canonical/python docker
- version/python docker/20.0.0
- vendor/debian
- canonical/debian linux
- version/debian linux/10.0
- vendor/netapp
- canonical/netapp e-series santricity os controller
- version/netapp e-series santricity os controller/11.0.0
- version/netapp e-series santricity os controller/11.60.3
Contact
SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.coBy using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203