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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | aardvark-dns | 2:1.7.0-1.module_el8.9.0+3657+d86e192f | ALSA-2023:6939 |
| AlmaLinux:8 | buildah | 1:1.31.3-1.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | buildah | 1:1.31.3-1.el9 | ALSA-2023:6473 |
| AlmaLinux:8 | buildah-tests | 1:1.31.3-1.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | buildah-tests | 1:1.31.3-1.el9 | ALSA-2023:6473 |
| 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 | 3.18-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:8 | criu | 3.18-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:8 | criu-devel | 3.18-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:8 | criu-libs | 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 | 4.4.0-1.module_el8.8.0+3615+3543c705 | ALSA-2023:6939 |
| AlmaLinux:8 | libslirp-devel | 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 | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | podman | 2:4.6.1-5.el9 | ALSA-2023:6474 |
| AlmaLinux:8 | podman-catatonit | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:8 | podman-docker | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | podman-docker | 2:4.6.1-5.el9 | ALSA-2023:6474 |
| AlmaLinux:8 | podman-gvproxy | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | podman-gvproxy | 2:4.6.1-5.el9 | ALSA-2023:6474 |
| AlmaLinux:8 | podman-plugins | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | podman-plugins | 2:4.6.1-5.el9 | ALSA-2023:6474 |
| AlmaLinux:8 | podman-remote | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | podman-remote | 2:4.6.1-5.el9 | ALSA-2023:6474 |
| AlmaLinux:8 | podman-tests | 3:4.6.1-4.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:9 | podman-tests | 2:4.6.1-5.el9 | ALSA-2023:6474 |
| AlmaLinux:8 | python3-criu | 3.18-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 | 2:1.13.3-1.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:8 | skopeo-tests | 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 | 0.0.99.4-5.module_el8.9.0+3643+9234dc3b | ALSA-2023:6939 |
| AlmaLinux:8 | toolbox-tests | 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 |
| Alpine:v3.20 | containerd | 1.6.18-r0 | ALPINE-CVE-2023-25173 |
| Alpine:v3.21 | containerd | 1.6.18-r0 | ALPINE-CVE-2023-25173 |
| Alpine:v3.22 | containerd | 1.6.18-r0 | ALPINE-CVE-2023-25173 |
| Alpine:v3.23 | containerd | 1.6.18-r0 | ALPINE-CVE-2023-25173 |
| Alpine:v3.24 | containerd | 1.6.18-r0 | ALPINE-CVE-2023-25173 |
| Debian:12 | containerd | 1.6.18~ds1-1 | DEBIAN-CVE-2023-25173 |
| Debian:13 | containerd | 1.6.18~ds1-1 | DEBIAN-CVE-2023-25173 |
| Debian:14 | containerd | 1.6.18~ds1-1 | DEBIAN-CVE-2023-25173 |
| Go | github.com/containerd/containerd | 1.6.18 | GHSA-hmfx-3pcx-653p |
| Go | github.com/containerd/containerd | 1.5.18 | GHSA-hmfx-3pcx-653p |
| Go | github.com/containerd/containerd | 1.5.18, 1.6.18 | GO-2023-1574 |
| Rocky Linux:8 | libslirp | 0:4.4.0-1.module+el8.9.0+1445+07728297 | RLSA-2023:6939 |
| Ubuntu:22.04:LTS | containerd | 1.6.12-0ubuntu1~22.04.3 | UBUNTU-CVE-2023-25173 |
| Ubuntu:22.04:LTS | containerd | 1.6.12-0ubuntu1~22.04.3 | USN-6202-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p x_refsource_CONFIRM
- https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4 x_refsource_MISC
- https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a x_refsource_MISC
- https://github.com/advisories/GHSA-4wjj-jwc9-2x96 x_refsource_MISC
- https://github.com/advisories/GHSA-fjm8-m7m6-2fjp x_refsource_MISC
- https://github.com/advisories/GHSA-phjr-8j92-w5v7 x_refsource_MISC
- https://github.com/containerd/containerd/releases/tag/v1.5.18 x_refsource_MISC
- https://github.com/containerd/containerd/releases/tag/v1.6.18 x_refsource_MISC
- https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/ x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/