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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-16T14:09:12.073Z
- Modified: 2026-09-10T03:49:52.072Z
- Also known as: GHSA-hmfx-3pcx-653p, GO-2023-1574
- Related: GO-2022-1008, CGA-r63j-98wh-q2gc, CVE-2022-2989, CVE-2022-2990, CVE-2022-2995, CVE-2022-36109, GHSA-4wjj-jwc9-2x96, GHSA-fjm8-m7m6-2fjp, GHSA-phjr-8j92-w5v7, GHSA-rc4r-wh2q-q6c4
- Weaknesses: CWE-269, CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- containerd containerd: < 1.5.18; >= 1.6.0, < 1.6.18
- github.com/containerd/containerd (Go): before 1.5.18; from 1.6.0 before 1.6.18
- linuxfoundation containerd: before 1.5.18; from 1.6.0 before 1.6.18

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/> (exploit, article, third-party-advisory)
- <https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4> (not-applicable, web)
- <https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a> (fix, patch, web)
- <https://github.com/advisories/GHSA-4wjj-jwc9-2x96> (advisory, not-applicable, web)
- <https://github.com/advisories/GHSA-fjm8-m7m6-2fjp> (advisory, not-applicable, web)
- <https://github.com/advisories/GHSA-phjr-8j92-w5v7> (advisory, not-applicable, web)
- <https://github.com/containerd/containerd/releases/tag/v1.5.18> (release-notes, web)
- <https://github.com/containerd/containerd/releases/tag/v1.6.18> (release-notes, web)
- <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/>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25173> (advisory)
- <https://github.com/containerd/containerd> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI> (web)
- <https://pkg.go.dev/vuln/GO-2023-1574> (web)
- <https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation> (web)

## Sources

- CVE List: [CVE-2023-25173](https://www.cve.org/CVERecord?id=CVE-2023-25173), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-hmfx-3pcx-653p](https://github.com/advisories/GHSA-hmfx-3pcx-653p), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1574](https://pkg.go.dev/vuln/GO-2023-1574), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-25173](https://nvd.nist.gov/vuln/detail/CVE-2023-25173), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25173 · Whole record: https://cve.day/CVE-2023-25173.json · Rebuilt by cve.day 2026-11-25T22:58:22.045Z
