Vulnerability · Published Feb 16, 2023 · Assigned by GitHub_M

CVE-2023-25173containerd supplementary groups are not set up properly

Medium 5.3

In plain English

A medium-severity incorrect authorization in containerd from containerd. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.5%top 54.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.7.0-1.module_el8.9.0+3657+d86e192fALSA-2023:6939
AlmaLinux:8buildah1:1.31.3-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9buildah1:1.31.3-1.el9ALSA-2023:6473
AlmaLinux:8buildah-tests1:1.31.3-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9buildah-tests1:1.31.3-1.el9ALSA-2023:6473
AlmaLinux:8cockpit-podman75-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8conmon3:2.1.8-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8container-selinux2:2.221.0-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8containernetworking-plugins1:1.3.0-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8containers-common2:1-54.module_el8.9.0+3673+0c64b403ALSA-2023:6939
AlmaLinux:8crit3.18-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8criu3.18-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8criu-devel3.18-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8criu-libs3.18-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8crun1.8.7-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8fuse-overlayfs1.12-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8libslirp4.4.0-1.module_el8.8.0+3615+3543c705ALSA-2023:6939
AlmaLinux:8libslirp-devel4.4.0-1.module_el8.8.0+3615+3543c705ALSA-2023:6939
AlmaLinux:8netavark2:1.7.0-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8oci-seccomp-bpf-hook1.2.9-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8podman3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9podman2:4.6.1-5.el9ALSA-2023:6474
AlmaLinux:8podman-catatonit3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8podman-docker3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9podman-docker2:4.6.1-5.el9ALSA-2023:6474
AlmaLinux:8podman-gvproxy3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9podman-gvproxy2:4.6.1-5.el9ALSA-2023:6474
AlmaLinux:8podman-plugins3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9podman-plugins2:4.6.1-5.el9ALSA-2023:6474
AlmaLinux:8podman-remote3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9podman-remote2:4.6.1-5.el9ALSA-2023:6474
AlmaLinux:8podman-tests3:4.6.1-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:9podman-tests2:4.6.1-5.el9ALSA-2023:6474
AlmaLinux:8python3-criu3.18-4.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8python3-podman4.6.0-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8runc1:1.1.9-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8skopeo2:1.13.3-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8skopeo-tests2:1.13.3-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8slirp4netns1.2.1-1.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8toolbox0.0.99.4-5.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8toolbox-tests0.0.99.4-5.module_el8.9.0+3643+9234dc3bALSA-2023:6939
AlmaLinux:8udica0.2.6-20.module_el8.8.0+3615+3543c705ALSA-2023:6939
Alpine:v3.20containerd1.6.18-r0ALPINE-CVE-2023-25173
Alpine:v3.21containerd1.6.18-r0ALPINE-CVE-2023-25173
Alpine:v3.22containerd1.6.18-r0ALPINE-CVE-2023-25173
Alpine:v3.23containerd1.6.18-r0ALPINE-CVE-2023-25173
Alpine:v3.24containerd1.6.18-r0ALPINE-CVE-2023-25173
Debian:12containerd1.6.18~ds1-1DEBIAN-CVE-2023-25173
Debian:13containerd1.6.18~ds1-1DEBIAN-CVE-2023-25173
Debian:14containerd1.6.18~ds1-1DEBIAN-CVE-2023-25173
Gogithub.com/containerd/containerd1.6.18GHSA-hmfx-3pcx-653p
Gogithub.com/containerd/containerd1.5.18GHSA-hmfx-3pcx-653p
Gogithub.com/containerd/containerd1.5.18, 1.6.18GO-2023-1574
Rocky Linux:8libslirp0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:6939
Ubuntu:22.04:LTScontainerd1.6.12-0ubuntu1~22.04.3UBUNTU-CVE-2023-25173
Ubuntu:22.04:LTScontainerd1.6.12-0ubuntu1~22.04.3USN-6202-1

Affected products (as reported)

VendorProductVersions
containerd containerd < 1.5.18>= 1.6.0, < 1.6.18

Weakness: CWE-863 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

References