CVE-2023-25173
"containerd Supplementary Group Privilege Escalation Vulnerability"
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.
INFO
Published Date :
Feb. 16, 2023, 3:15 p.m.
Last Modified :
Nov. 21, 2024, 7:49 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-25173
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-25173
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-25173
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/advisories/GHSA-4wjj-jwc9-2x96 Added Reference https://github.com/advisories/GHSA-fjm8-m7m6-2fjp Added Reference https://github.com/advisories/GHSA-phjr-8j92-w5v7 Added Reference https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a Added Reference https://github.com/containerd/containerd/releases/tag/v1.5.18 Added Reference https://github.com/containerd/containerd/releases/tag/v1.6.18 Added Reference https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p Added Reference https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4 Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/ Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/ Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/ Added Reference https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/ -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Sep. 15, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/ [No Types Assigned] -
CVE Modified by [email protected]
Sep. 05, 2023
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/ [No Types Assigned] -
CVE Modified by [email protected]
Aug. 30, 2023
Action Type Old Value New Value Changed 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. 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. Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/ [No Types Assigned] -
Initial Analysis by [email protected]
Feb. 24, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/advisories/GHSA-4wjj-jwc9-2x96 No Types Assigned https://github.com/advisories/GHSA-4wjj-jwc9-2x96 Not Applicable Changed Reference Type https://github.com/advisories/GHSA-fjm8-m7m6-2fjp No Types Assigned https://github.com/advisories/GHSA-fjm8-m7m6-2fjp Not Applicable Changed Reference Type https://github.com/advisories/GHSA-phjr-8j92-w5v7 No Types Assigned https://github.com/advisories/GHSA-phjr-8j92-w5v7 Not Applicable Changed Reference Type https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a No Types Assigned https://github.com/containerd/containerd/commit/133f6bb6cd827ce35a5fb279c1ead12b9d21460a Patch Changed Reference Type https://github.com/containerd/containerd/releases/tag/v1.5.18 No Types Assigned https://github.com/containerd/containerd/releases/tag/v1.5.18 Release Notes Changed Reference Type https://github.com/containerd/containerd/releases/tag/v1.6.18 No Types Assigned https://github.com/containerd/containerd/releases/tag/v1.6.18 Release Notes Changed Reference Type https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p No Types Assigned https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p Mitigation, Vendor Advisory Changed Reference Type https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4 No Types Assigned https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4 Not Applicable Changed Reference Type https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/ No Types Assigned https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/ Exploit, Third Party Advisory Added CWE NIST CWE-863 Added CPE Configuration OR *cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* versions up to (excluding) 1.5.18 *cpe:2.3:a:linuxfoundation:containerd:*:*:*:*:*:*:*:* versions from (including) 1.6.0 up to (excluding) 1.6.18
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-25173
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-25173
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.16 }} 0.03%
score
0.54428
percentile