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.
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.
No analysis available yet.
Remediation
No remediation available yet.
Tracking
Sign in to view the affected projects.
Advisories
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2023-0722 | 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. |
Github GHSA |
GHSA-hmfx-3pcx-653p | Supplementary groups are not set up properly in github.com/containerd/containerd |
Ubuntu USN |
USN-6202-1 | containerd vulnerabilities |
References
History
Fri, 25 Apr 2025 15:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Redhat openshift Sandboxed Containers
|
|
| CPEs | cpe:/a:redhat:openshift_sandboxed_containers:1.5.0::el9 | |
| Vendors & Products |
Redhat openshift Sandboxed Containers
|
Tue, 22 Apr 2025 14:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | ||
| Vendors & Products |
Redhat openshift Security Profiles Operator Stable
|
Mon, 10 Mar 2025 21:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Subscriptions
Linuxfoundation
Subscribe
Containerd
Subscribe
Redhat
Subscribe
Container Native Virtualization
Subscribe
Enterprise Linux
Subscribe
Openshift
Subscribe
Openshift Api Data Protection
Subscribe
Openshift Sandboxed Containers
Subscribe
Openshift Serverless
Subscribe
Rhmt
Subscribe
Serverless
Subscribe
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2025-03-10T21:10:38.648Z
Reserved: 2023-02-03T16:59:18.247Z
Link: CVE-2023-25173
Updated: 2024-08-02T11:18:35.671Z
Status : Modified
Published: 2023-02-16T15:15:20.057
Modified: 2024-11-21T07:49:15.083
Link: CVE-2023-25173
OpenCVE Enrichment
No data.
EUVD
Github GHSA
Ubuntu USN