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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.41% (percentile 27, 2026-11-26)
- **CWE:** CWE-863
- **Aliases:** GHSA-hmfx-3pcx-653p, GO-2023-1574
- **Published:** 2023-02-16T14:09:12.073Z
- **Modified:** 2026-09-10T03:49:52.072Z

## Who should check

- Projects that depend on Go package github.com/containerd/containerd (\< 1.5.18)
- Anyone running containerd \< 1.5.18; \>= 1.6.0, \< 1.6.18

## 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.

## Affected and fixed versions

- Go `github.com/containerd/containerd`: affected \< 1.5.18; fixed 1.5.18, 1.6.18 (osv)
- containerd: \< 1.5.18; \>= 1.6.0, \< 1.6.18 (cvelist)

## Mitigation

- Upgrade github.com/containerd/containerd to one of 1.5.18, 1.6.18 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-25173. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-25173.md
Affected: github.com/containerd/containerd < 1.5.18
Fixed in: 1.5.18, 1.6.18

Steps:
1. Search this machine and project for github.com/containerd/containerd (Go), containerd: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-25173 being exploited?

There is no confirmed exploitation: CVE-2023-25173 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.41% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-25173?

Medium: CVSS 5.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-25173?

github.com/containerd/containerd \< 1.5.18.

### Is there a fix for CVE-2023-25173?

Yes. Fixed in 1.5.18, 1.6.18. Upgrade github.com/containerd/containerd to one of 1.5.18, 1.6.18 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-25173?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-25173>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hmfx-3pcx-653p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-1574> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-25173> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-25173>
