{"id":"CVE-2023-25173","aliases":["CVE-2023-25173","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"],"kind":"vulnerability","state":"published","title":"containerd supplementary groups are not set up properly","summary":"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.\n\nThis 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nThis 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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA bug was found in containerd 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.\n\nDownstream applications that use the containerd client library may be affected as well.\n\n### Patches\nThis 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.\n\n### Workarounds\n\nEnsure 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.\n\n### References\n\n- https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/\n- Docker/Moby: CVE-2022-36109, fixed in Docker 20.10.18\n- CRI-O: CVE-2022-2995, fixed in CRI-O 1.25.0\n- Podman: CVE-2022-2989, fixed in Podman 3.0.1 and 4.2.0\n- Buildah: CVE-2022-2990, fixed in Buildah 1.27.1\n\nNote that CVE IDs apply to a particular implementation, even if an issue is common.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [containerd](https://github.com/containerd/containerd/issues/new/choose)\n* Email us at [security@containerd.io](mailto:security@containerd.io)\n\nTo report a security issue in containerd:\n* [Report a new vulnerability](https://github.com/containerd/containerd/security/advisories/new)\n* Email us at [security@containerd.io](mailto:security@containerd.io)","format":"markdown","source":"ghsa"},{"lang":"en","text":"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 and potentially escalate privileges in the container. Uses of the containerd client library may also have improperly setup supplementary groups.","format":"markdown","source":"go"},{"lang":"es","text":"Containerd es contenedor de código abierto en tiempo de ejecución. Se encontró un error en Containerd antes de las versiones 1.6.18 y 1.5.18 donde los grupos suplementarios no están configurados correctamente dentro de un contenedor. Si un atacante tiene acceso directo a un contenedor y manipula su acceso de grupo suplementario, es posible que pueda utilizar el acceso de grupo suplementario para eludir las restricciones del grupo primario en algunos casos, obteniendo potencialmente acceso a información confidencial o obteniendo la capacidad de ejecutar código en ese contenedor. Las aplicaciones posteriores que utilizan la librería cliente en containerd también pueden verse afectadas. Este error se ha solucionado en Containerd v1.6.18 y v.1.5.18. Los usuarios deben actualizar a estas versiones y volver a crear containers para resolver este problema. Los usuarios que dependen de una aplicación posterior que utiliza la librería cliente de Containerd deben verificar esa aplicación para obtener avisos e instrucciones por separado. Como workaround, asegúrese de que no se utilice la instrucción de Dockerfile `\"USER $USERNAME\"`. En su lugar, establezca el punto de entrada del contenedor en un valor similar a `ENTRYPOINT [\"su\", \"-\", \"user\"]` para permitir que `su` configure correctamente grupos suplementarios.","source":"nvd"}],"published":"2023-02-16T14:09:12.073Z","modified":"2026-09-10T03:49:52.072Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-269","CWE-863"],"affected":[{"ranges":[{"version":"< 1.5.18","status":"affected"},{"version":">= 1.6.0, < 1.6.18","status":"affected"}],"vendor":"containerd","product":"containerd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.18"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.6.0","status":"affected","fixed":"1.6.18"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.5.18"},{"type":"semver","introduced":"1.6.0","status":"affected","fixed":"1.6.18"}],"ecosystem":"Go","package":"github.com/containerd/containerd","purl":"pkg:golang/github.com/containerd/containerd","source":"go"},{"ranges":[{"status":"affected","fixed":"1.5.18"},{"status":"affected","introduced":"1.6.0","fixed":"1.6.18"}],"vendor":"linuxfoundation","product":"containerd","cpe":"cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4","tags":["not-applicable","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/advisories/GHSA-4wjj-jwc9-2x96","tags":["advisory","not-applicable","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/advisories/GHSA-fjm8-m7m6-2fjp","tags":["advisory","not-applicable","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/advisories/GHSA-phjr-8j92-w5v7","tags":["advisory","not-applicable","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.5.18","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/containerd/containerd/releases/tag/v1.6.18","tags":["release-notes","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/","tags":["article","exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","go","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25173","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/containerd/containerd","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI","tags":["web"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2023-1574","tags":["web"],"sources":["ghsa"]},{"url":"https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-03-10T21:00:44.060Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-25173","url":"https://www.cve.org/CVERecord?id=CVE-2023-25173","licence":"CVE Terms of Use","modified":"2025-03-10T21:10:38.648Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hmfx-3pcx-653p","url":"https://github.com/advisories/GHSA-hmfx-3pcx-653p","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:52.072Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1574","url":"https://pkg.go.dev/vuln/GO-2023-1574","licence":"CC-BY-4.0","modified":"2026-02-04T04:26:18.468Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-25173","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25173","licence":"Public domain","modified":"2026-06-17T05:40:50.410Z"}],"updatedAt":"2026-11-25T22:58:22.045Z","epss":{"score":0.00414,"percentile":0.27334,"date":"2026-11-30T12:00:22.000Z"}}