PT-2022-6457 · Docker+11 · Moby+11
Steven J. Murdoch
·
Published
2022-09-14
·
Updated
2025-11-28
·
CVE-2023-25173
CVSS v3.1
7.1
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
containerd versions prior to 1.6.18 and 1.5.18
Moby (Docker Engine) versions prior to 20.10.18
CRI-O (affected versions not specified)
Buildah (affected versions not specified)
Podman (affected versions not specified)
Description
A bug was found in containerd, Moby (Docker Engine), CRI-O, Buildah, and Podman where 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, potentially gaining access to sensitive information or gaining the ability to execute code in that container. Downstream applications that use the containerd client library may be affected as well.
Recommendations
For containerd versions prior to 1.6.18 and 1.5.18: Update to versions 1.6.18 and 1.5.18 and recreate containers to resolve this issue.
For Moby (Docker Engine) versions prior to 20.10.18: Update to version 20.10.18 when it is available and stop and restart running containers for the permissions to be fixed.
For CRI-O, Buildah, and Podman: At the moment, there is no information about a newer version that contains a fix for this vulnerability.
As a temporary workaround for all affected versions, ensure that the "USER $USERNAME" Dockerfile instruction is not used. Instead, set the container entrypoint to a value similar to
ENTRYPOINT ["su", "-", "user"] to allow su to properly set up supplementary groups.Exploit
Improper Privilege Management
Incorrect Permission
Improper Access Control
Incorrect Authorization
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Kubernetes Containerd
Linuxmint
Moby
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu