Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-25173 EUVD-2023-0722GHSA-hmfx-3pcx-653pGO-2023-1574

containerd supplementary groups are not set up properly

Published Feb 16, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

Description

containerd is an open source container runtime. A bug was found in containerd prior to versions 1.6.18 and 1.5.18 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.

This bug has been fixed in containerd v1.6.18 and v.1.5.18. Users should update to these versions and recreate containers to resolve this issue. Users who rely on a downstream application that uses containerd's client library should check that application for a separate advisory and instructions. As a workaround, 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.

Affected products

VendorProductAffectedFixed
containerd containerd < 1.5.18, >= 1.6.0, < 1.6.18 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 containerd 1.6.18~ds1-1 —
Debian 13 containerd 1.6.18~ds1-1 —
Debian 12 containerd 1.6.18~ds1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS containerd 1.6.12-0ubuntu1~22.04.3 USN-6202-1
Ubuntu 20.04 LTS containerd 1.6.12-0ubuntu1~20.04.3 USN-6202-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS containerd 1.6.12-0ubuntu1~18.04.1+esm1 USN-6202-1
Ubuntu Pro 16.04 LTS containerd 1.2.6-0ubuntu1~16.04.6+esm4 USN-6202-1
ReleasePackageFixed inAdvisory
RHEL 9 buildah +1 1:1.31.3-1.el9 RHSA-2023:6473
RHEL 9 podman +5 2:4.6.1-5.el9 RHSA-2023:6474
RHEL 8 buildah +1 1:1.31.3-1.module+el8.9.0+19761+326da906 RHSA-2023:6939
RHEL 8 cockpit-podman 75-1.module+el8.9.0+19761+326da906 RHSA-2023:6939
RHEL 8 conmon 3:2.1.8-1.module+el8.9.0+19761+326da906 RHSA-2023:6939
RHEL 8 container-selinux 2:2.221.0-1.module+el8.9.0+19685+019f3589 RHSA-2023:6939
RHEL 8 containernetworking-plugins 1:1.3.0-4.module+el8.9.0+19649+5879504a RHSA-2023:6939
RHEL 8 containers-common 2:1-54.module+el8.9.0+19761+326da906 RHSA-2023:6939
RHEL 8 crit +4 3.18-4.module+el8.9.0+19090+d2921118 RHSA-2023:6939
RHEL 8 crun 1.8.7-1.module+el8.9.0+19731+94cfa27e RHSA-2023:6939
RHEL 8 fuse-overlayfs 1.12-1.module+el8.9.0+19090+d2921118 RHSA-2023:6939
RHEL 8 libslirp +1 4.4.0-1.module+el8.9.0+19244+655f84ee RHSA-2023:6939
RHEL 8 netavark +1 2:1.7.0-1.module+el8.9.0+19244+655f84ee RHSA-2023:6939
RHEL 8 oci-seccomp-bpf-hook 1.2.9-1.module+el8.9.0+19090+d2921118 RHSA-2023:6939
RHEL 8 podman +6 3:4.6.1-4.module+el8.9.0+19761+326da906 RHSA-2023:6939
RHEL 8 python-podman +1 4.6.0-1.module+el8.9.0+19513+83322573 RHSA-2023:6939
RHEL 8 runc 1:1.1.9-1.module+el8.9.0+19648+0d5ae0ec RHSA-2023:6939
RHEL 8 skopeo +1 2:1.13.3-1.module+el8.9.0+19761+326da906 RHSA-2023:6939
RHEL 8 slirp4netns 1.2.1-1.module+el8.9.0+19731+94cfa27e RHSA-2023:6939
RHEL 8 toolbox +1 0.0.99.4-5.module+el8.9.0+19655+b08391f8 RHSA-2023:6939
RHEL 8 udica 0.2.6-20.module+el8.9.0+19244+655f84ee RHSA-2023:6939
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Serverless 1 openshift-serverless-clients 1.8.1-3.el8 RHSA-2023:3450

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 buildah +1 1:1.31.3-1.el9 ALSA-2023:6473
AlmaLinux 9 podman +5 2:4.6.1-5.el9 ALSA-2023:6474
AlmaLinux 8 aardvark-dns 2:1.7.0-1.module_el8.9.0+3657+d86e192f ALSA-2023:6939
AlmaLinux 8 buildah +1 1:1.31.3-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 cockpit-podman 75-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 conmon 3:2.1.8-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 container-selinux 2:2.221.0-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 containernetworking-plugins 1:1.3.0-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 containers-common 2:1-54.module_el8.9.0+3673+0c64b403 ALSA-2023:6939
AlmaLinux 8 crit +4 3.18-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 crun 1.8.7-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 fuse-overlayfs 1.12-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 libslirp +1 4.4.0-1.module_el8.8.0+3615+3543c705 ALSA-2023:6939
AlmaLinux 8 netavark 2:1.7.0-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 oci-seccomp-bpf-hook 1.2.9-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 podman +6 3:4.6.1-4.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 python3-podman 4.6.0-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 runc 1:1.1.9-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 skopeo +1 2:1.13.3-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 slirp4netns 1.2.1-1.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 toolbox +1 0.0.99.4-5.module_el8.9.0+3643+9234dc3b ALSA-2023:6939
AlmaLinux 8 udica 0.2.6-20.module_el8.8.0+3615+3543c705 ALSA-2023:6939

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libslirp 4.4.0-1.module+el8.9.0+1445+07728297 RLSA-2023:6939
ReleasePackageFixed inAdvisory
SLES 15 SP5 helm 3.13.1-150000.1.26.1 SUSE-SU-2023:4124-1
SLES 15 SP4 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
SLES 15 SP4 helm 3.13.1-150000.1.26.1 SUSE-SU-2023:4124-1
SLES 15 SP3 helm 3.13.1-150000.1.26.1 SUSE-SU-2023:4124-1
SLES 12 containerd 1.6.19-16.76.1 SUSE-SU-2023:1826-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 helm 3.13.1-150000.1.26.1 SUSE-SU-2023:4124-1
SLE Micro 5.4 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
SLE Micro 5.3 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
SLE Micro 5.2 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
SLE Micro 5.1 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
SLE HPC 15 SP3 helm 3.13.1-150000.1.26.1 SUSE-SU-2023:4124-1
SUSE Enterprise Storage 7.1 helm 3.13.1-150000.1.26.1 SUSE-SU-2023:4124-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed containerd 1.6.19-1.1 openSUSE-SU-2024:12822-1
openSUSE Tumbleweed helm 3.13.0-2.1 openSUSE-SU-2024:13295-1
openSUSE Tumbleweed helm3 3.19.2-1.1 openSUSE-SU-2025:15779-1
openSUSE Leap 15.4 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 containerd 1.6.19-150000.87.1 SUSE-SU-2023:1827-1
ReleasePackageFixed inAdvisory
Alpine v3.24 containerd 1.6.18-r0 —
Alpine v3.23 containerd 1.6.18-r0 —
Alpine v3.22 containerd 1.6.18-r0 —
Alpine v3.21 containerd 1.6.18-r0 —
Alpine v3.20 containerd 1.6.18-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 containerd 1.6.18-r0 —
Alpine v3.18 containerd 1.6.18-r0 —
Alpine v3.17 containerd 1.6.18-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 containerd +1 1.6.19-1.amzn2023.0.1 ALAS2023-2023-156

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) moby-containerd 1.6.18-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 buildah +1 1:1.31.3-1.0.1.el9 ELSA-2023-6473
Oracle Linux 9 podman +5 2:4.6.1-5.0.1.el9 ELSA-2023-6474
Oracle Linux 8 buildah +1 1:1.31.3-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 cockpit-podman 75-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 conmon 3:2.1.8-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 container-selinux 2:2.221.0-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 containernetworking-plugins 1:1.3.0-4.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 containers-common 2:1-54.0.1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 crit +4 3.18-4.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 crun 1.8.7-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 fuse-overlayfs 1.12-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 libslirp +1 4.4.0-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 netavark +1 2:1.7.0-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 oci-seccomp-bpf-hook 1.2.9-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 podman +6 3:4.6.1-4.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 python3-podman 4.6.0-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 runc 1:1.1.9-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 skopeo +1 2:1.13.3-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 slirp4netns 1.2.1-1.module+el8.9.0+90021+ce997450 ELSA-2023-6939
Oracle Linux 8 udica 0.2.6-20.module+el8.9.0+90021+ce997450 ELSA-2023-6939

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ctop 0.7.7-r13 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/containerd/containerd < 1.5.18 1.5.18 GHSA-hmfx-3pcx-653p
Go github.com/containerd/containerd >= 1.6.0, < 1.6.18 1.6.18 GHSA-hmfx-3pcx-653p
Go github.com/containerd/containerd < 1.5.18 · >= 1.6.0, < 1.6.18 1.5.18, 1.6.18 GO-2023-1574

Advisories 23

References