NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2021-21284: moby Access to remapped root allows privilege escalation to real root

mediumCVSS 3.1 6.8GHSA-7452-xqpj-6rpc

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/ 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;

Published Jan 31, 2024 · Updated Jun 10, 2024

Affected packages

github.com/moby/moby

Ecosystem
Go
Affected
< 19.3.15
Fixed in
19.3.15
Check
go list -m github.com/moby/moby

github.com/moby/moby

Ecosystem
Go
Affected
>= 20.10.0-beta1, < 20.10.3
Fixed in
20.10.3
Check
go list -m github.com/moby/moby

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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 [email protected]

Credited to ajxchapman, awprice, nathanburrell, raulgomis, chris-walz, mark-adams, dbaxa, cpuguy83, neersighted.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries