Go Vulnerability Database
GO-2023-1574
Privilege escalation via supplementary groups in github.com/containerd/containerd
Details
Supplementary groups are not set up properly inside a container. If an attacker has direct access to a container and manipulates their supplementary group access, they may be able to use supplementary group access to bypass primary group restrictions in some cases and potentially escalate privileges in the container. Uses of the containerd client library may also have improperly setup supplementary groups.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/containerd/containerd | All versions before 1.5.18 (fixed in 1.5.18) From 1.6.0 before 1.6.18 (fixed in 1.6.18) |
References
- https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p
- https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/
- https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a
- https://github.com/advisories/GHSA-4wjj-jwc9-2x96
- https://github.com/advisories/GHSA-fjm8-m7m6-2fjp
- https://github.com/advisories/GHSA-phjr-8j92-w5v7
- https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4