CVE-2023-25173 containerd supplementary groups are not set up properly
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- DockerUbuntuDebian
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.
Upgrade path
18 packages: 17 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/containerd(Alpine v3.17) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.18) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.19) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.20) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.21) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.22) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.23) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| alpine/containerd(Alpine v3.24) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 | Fixed |
| containerd(Go) | < 1.5.18; >= 1.6.0, < 1.6.18 | 1.5.18, 1.6.18 | Fixed |
| debian/containerd(Debian 12) | < 1.6.18~ds1-1 | 1.6.18~ds1-1 | Fixed |
| debian/containerd(Debian 13) | < 1.6.18~ds1-1 | 1.6.18~ds1-1 | Fixed |
| debian/containerd(Debian 14) | < 1.6.18~ds1-1 | 1.6.18~ds1-1 | Fixed |
| linuxfoundation containerd | < 1.5.18; >= 1.6.0, < 1.6.18 | 1.5.18, 1.6.18 | Fixed |
| ubuntu/containerd(Ubuntu 20.04) | < 1.6.12-0ubuntu1~20.04.3; = 1.2.10-0ubuntu1; = 1.3.2-0ubuntu1; = 1.3.3-0ubuntu1 +15 more | 1.6.12-0ubuntu1~20.04.3 | Fixed |
| ubuntu/containerd(Ubuntu 22.04) | < 1.6.12-0ubuntu1~22.04.3; = 1.5.5-0ubuntu3; = 1.5.9-0ubuntu1; = 1.5.9-0ubuntu2 +3 more | 1.6.12-0ubuntu1~22.04.3 | Fixed |
| ubuntu/containerd(Ubuntu Pro 16.04) | < 1.2.6-0ubuntu1~16.04.6+esm4; = 0.2.1-0ubuntu4~16.04; = 0.2.3-0ubuntu1~16.04; = 0.2.5-0ubuntu1~16.04.1 +7 more | 1.2.6-0ubuntu1~16.04.6+esm4 | Fixed |
| ubuntu/containerd(Ubuntu Pro 18.04) | < 1.6.12-0ubuntu1~18.04.1+esm1; = 0.2.5-0ubuntu2; = 1.2.6-0ubuntu1~18.04.1; = 1.2.6-0ubuntu1~18.04.2 +13 more | 1.6.12-0ubuntu1~18.04.1+esm1 | Fixed |
| containerd | = < 1.5.18; = >= 1.6.0, < 1.6.18 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| containerd(Go) | < 1.5.18 | 1.5.18 |
| containerd(Go) | >= 1.6.0, < 1.6.18 | 1.6.18 |
| debian/containerd(Debian:12) | < 1.6.18~ds1-1 | 1.6.18~ds1-1 |
| debian/containerd(Debian:13) | < 1.6.18~ds1-1 | 1.6.18~ds1-1 |
| debian/containerd(Debian:14) | < 1.6.18~ds1-1 | 1.6.18~ds1-1 |
| containerd | = < 1.5.18 | No fix listed |
| containerd | = >= 1.6.0, < 1.6.18 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | < 1.6.12-0ubuntu1~22.04.3 | 1.6.12-0ubuntu1~22.04.3 |
| linuxfoundation containerd | < 1.5.18 | 1.5.18 |
| linuxfoundation containerd | >= 1.6.0, < 1.6.18 | 1.6.18 |
| alpine/containerd(Alpine:v3.17) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.18) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.19) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.20) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.21) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.22) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.23) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| alpine/containerd(Alpine:v3.24) | >= 1.6.0, < 1.6.18-r0 | 1.6.18-r0 |
| ubuntu/containerd(Ubuntu:Pro:16.04) | < 1.2.6-0ubuntu1~16.04.6+esm4 | 1.2.6-0ubuntu1~16.04.6+esm4 |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.1-0ubuntu4~16.04 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.3-0ubuntu1~16.04 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.5-0ubuntu1~16.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.4 | No fix listed |
Show 46 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.5 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | < 1.6.12-0ubuntu1~18.04.1+esm1 | 1.6.12-0ubuntu1~18.04.1+esm1 |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 0.2.5-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.2.6-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.2.6-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.3.3-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.3.3-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.3.3-0ubuntu1~18.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.3.3-0ubuntu1~18.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.4.4-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.2-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.2-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.2-0ubuntu1~18.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.5-0ubuntu3~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.5-0ubuntu3~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.9-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.5.9-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:18.04) | = 1.6.12-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | < 1.6.12-0ubuntu1~20.04.3 | 1.6.12-0ubuntu1~20.04.3 |
| ubuntu/containerd(Ubuntu:20.04) | = 1.2.10-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.2-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.3 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.4.4-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.5-0ubuntu3~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.5-0ubuntu3~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.5 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.6 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.6.12-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.5-0ubuntu3 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu3 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu3.1 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.6.12-0ubuntu1~22.04.1 | No fix listed |
References
- https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p issue-tracking mitigation vendor-advisory
- https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4 not-applicable vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a patch
- https://github.com/advisories/GHSA-4wjj-jwc9-2x96 not-applicable vendor-advisory
- https://github.com/advisories/GHSA-fjm8-m7m6-2fjp not-applicable vendor-advisory
- https://github.com/advisories/GHSA-phjr-8j92-w5v7 not-applicable vendor-advisory
- github.com product
- https://github.com/containerd/containerd/releases/tag/v1.5.18 release-notes
- https://github.com/containerd/containerd/releases/tag/v1.6.18 release-notes
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- pkg.go.dev
- https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/ exploit technical-description third-party-advisory
- github.com
- Debian Security Tracker CVE-2023-25173 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6202-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory