CVE-2023-25173Linuxfoundation Containerd
High 7.8
Follow: this CVE · Linuxfoundation · Linuxfoundation Containerd We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 27
- Auth required
- Yes
- Published
- Feb 16, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-863
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Containerd.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/containerd/containerd |
< 1.5.18 |
1.5.18 |
go get github.com/containerd/containerd@v1.5.18 |
| Go | github.com/containerd/containerd |
≥ 1.6.0 < 1.6.18 |
1.6.18 |
go get github.com/containerd/containerd@v1.6.18 |
| Go | github.com/containerd/containerd |
< 1.5.18 |
1.5.18 |
go get github.com/containerd/containerd@v1.5.18 |
| Go | github.com/containerd/containerd |
≥ 1.6.0 < 1.6.18 |
1.6.18 |
go get github.com/containerd/containerd@v1.6.18 |
Per OSV / GitHub Advisories (GHSA-hmfx-3pcx-653p, GO-2023-1574). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| linuxfoundation | containerd | < 1.5.18 |
| linuxfoundation | containerd | ≥ 1.6.0 < 1.6.18 |
Official advisories
- Red Hat Security Advisory: container-tools:rhel8 security and bug fix update · Red Hat · RHSA-2023:6939 · Oct 21, 2024 Medium
- Red Hat Security Advisory: buildah security update · Red Hat · RHSA-2023:6473 · Oct 2, 2024 Medium
- Red Hat Security Advisory: podman security, bug fix, and enhancement update · Red Hat · RHSA-2023:6474 · Oct 2, 2024 Medium
Also: Red Hat (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Not Applicable
- github.com Not Applicable
- github.com Not Applicable
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Mitigation Vendor Advisory
- github.com Not Applicable
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.benthamsgaze.org Exploit Third Party Advisory