CVE-2023-25173
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/containerd/containerdGo | < 1.5.18 | 1.5.18 |
github.com/containerd/containerdGo | >= 1.6.0, < 1.6.18 | 1.6.18 |
Affected products
60- Range: < 1.5.18
- osv-coords58 versionspkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/opensuse/helm3&distro=openSUSE%20Tumbleweedpkg:golang/github.com/containerd/containerdpkg:rpm/suse/helm&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/almalinux/podmanpkg:rpm/almalinux/aardvark-dnspkg:rpm/almalinux/conmonpkg:rpm/almalinux/container-selinuxpkg:rpm/almalinux/containers-commonpkg:rpm/almalinux/crunpkg:rpm/almalinux/fuse-overlayfspkg:rpm/almalinux/libslirppkg:rpm/almalinux/oci-seccomp-bpf-hookpkg:rpm/almalinux/podman-catatonitpkg:rpm/almalinux/python3-podmanpkg:rpm/almalinux/runcpkg:rpm/almalinux/skopeo-testspkg:rpm/almalinux/slirp4netnspkg:rpm/almalinux/toolboxpkg:rpm/almalinux/buildahpkg:rpm/almalinux/podman-dockerpkg:rpm/almalinux/podman-gvproxypkg:rpm/almalinux/cockpit-podmanpkg:rpm/almalinux/criu-libspkg:rpm/almalinux/netavarkpkg:rpm/almalinux/skopeopkg:rpm/almalinux/containernetworking-pluginspkg:rpm/almalinux/critpkg:rpm/almalinux/criupkg:rpm/almalinux/libslirp-develpkg:rpm/almalinux/python3-criupkg:rpm/almalinux/toolbox-testspkg:rpm/almalinux/udicapkg:rpm/almalinux/podman-pluginspkg:rpm/almalinux/podman-remotepkg:rpm/almalinux/buildah-testspkg:rpm/almalinux/criu-develpkg:rpm/opensuse/containerd&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/containerd&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/helm&distro=openSUSE%20Tumbleweedpkg:rpm/almalinux/podman-testspkg:apk/chainguard/ctoppkg:apk/chainguard/flux-helm-controller-0.37pkg:apk/wolfi/ctoppkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP4pkg:rpm/suse/containerd&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/opensuse/containerd&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4pkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP4pkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP5pkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP5pkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/helm&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3
< 1.6.19-150000.87.1+ 57 more
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 3.19.2-1.1
- (no CPE)range: < 1.5.18
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 2:4.6.1-5.el9
- (no CPE)range: < 2:1.7.0-1.module_el8.9.0+3657+d86e192f
- (no CPE)range: < 3:2.1.8-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 2:2.221.0-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 2:1-54.module_el8.9.0+3673+0c64b403
- (no CPE)range: < 1.8.7-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 1.12-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 4.4.0-1.module_el8.8.0+3615+3543c705
- (no CPE)range: < 1.2.9-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 3:4.6.1-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 4.6.0-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 1:1.1.9-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 2:1.13.3-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 1.2.1-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 0.0.99.4-5.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 1:1.31.3-1.el9
- (no CPE)range: < 2:4.6.1-5.el9
- (no CPE)range: < 2:4.6.1-5.el9
- (no CPE)range: < 75-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 3.18-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 2:1.7.0-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 2:1.13.3-1.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 1:1.3.0-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 3.18-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 3.18-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 4.4.0-1.module_el8.8.0+3615+3543c705
- (no CPE)range: < 3.18-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 0.0.99.4-5.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 0.2.6-20.module_el8.8.0+3615+3543c705
- (no CPE)range: < 2:4.6.1-5.el9
- (no CPE)range: < 2:4.6.1-5.el9
- (no CPE)range: < 1:1.31.3-1.el9
- (no CPE)range: < 3.18-4.module_el8.9.0+3643+9234dc3b
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 1.6.19-1.1
- (no CPE)range: < 3.13.0-2.1
- (no CPE)range: < 2:4.6.1-5.el9
- (no CPE)range: < 0.7.7-r13
- (no CPE)range: < 0.27.0-r7
- (no CPE)range: < 0.7.7-r13
- (no CPE)range: < 1.6.19-16.76.1
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 1.6.19-150000.87.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
- (no CPE)range: < 3.13.1-150000.1.26.1
Patches
Vulnerability mechanics
References
19- github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460anvdPatchWEB
- www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/nvdExploitThird Party Advisory
- github.com/advisories/GHSA-4wjj-jwc9-2x96nvdNot ApplicableADVISORY
- github.com/advisories/GHSA-fjm8-m7m6-2fjpnvdNot ApplicableADVISORY
- github.com/advisories/GHSA-hmfx-3pcx-653pghsaADVISORY
- github.com/advisories/GHSA-phjr-8j92-w5v7nvdNot ApplicableADVISORY
- github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653pnvdMitigationVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2023-25173ghsaADVISORY
- github.com/containerd/containerd/releases/tag/v1.5.18nvdRelease NotesWEB
- github.com/containerd/containerd/releases/tag/v1.6.18nvdRelease NotesWEB
- github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4nvdNot ApplicableWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHCghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFEghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAIghsaWEB
- pkg.go.dev/vuln/GO-2023-1574ghsaWEB
- www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigationghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/nvd
- lists.fedoraproject.org/archives/list/[email protected]/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/nvd
- lists.fedoraproject.org/archives/list/[email protected]/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/nvd
News mentions
0No linked articles in our index yet.