• 公告ID (KylinSec-SA-2025-2307)

摘要:

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.

安全等级: Low

公告ID: KylinSec-SA-2025-2307

发布日期: 2025年4月20日

关联CVE: CVE-2023-25173  

  • 详细介绍

1. 漏洞描述

   

containerd(开源容器运行时)在1.6.18和1.5.18之前的版本中被发现存在一个安全缺陷,该缺陷导致容器内辅助用户组(supplementary groups)配置不当。攻击者若直接访问容器并操纵其辅助用户组权限,在某些情况下可能利用辅助用户组访问绕过主用户组限制,从而获取敏感信息或在容器内执行代码。使用containerd客户端库的下游应用程序也可能受到影响。

该漏洞已在containerd v1.6.18和v1.5.18中修复。用户应采取以下措施:

升级至上述版本并重建容器

依赖containerd客户端库的下游应用程序用户应检查相关应用的安全公告

临时缓解方案:
• 避免在Dockerfile中使用"USER $USERNAME"指令
• 建议将容器入口点设置为类似ENTRYPOINT ["su", "-", "user"]的形式,确保su命令正确配置辅助用户组

2. 影响范围

cve名称 产品 组件 是否受影响
CVE-2023-25173 KY3.4-5A podman Unaffected
CVE-2023-25173 V6 podman Unaffected

3. 影响组件

    无

4. 修复版本

    无

5. 修复方法

   无

6. 下载链接

    无
上一篇:KylinSec-SA-2025-2306 下一篇:KylinSec-SA-2025-2308