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.
CVE-2023-25173 - Medium Severity Vulnerability
Vulnerable Libraries - github.com/Containerd/Containerd-v1.5.5, github.com/Containerd/Containerd-v1.3.0
github.com/Containerd/Containerd-v1.5.5
An open and reliable container runtime
Library home page: https://proxy.golang.org/github.com/!containerd/!containerd/@v/v1.5.5.zip
Path to dependency file: /chaincode/cmcc/go/go.mod
Path to vulnerable library: /chaincode/cmcc/go/go.mod
Dependency Hierarchy: - github.com/hyperledger/fabric-v1.4.1 (Root Library) - github.com/fsouza/go-dockerclient-v1.7.3 - github.com/Docker/Docker-v20.10.8+incompatible - :x: **github.com/Containerd/Containerd-v1.5.5** (Vulnerable Library)
github.com/Containerd/Containerd-v1.3.0
An open and reliable container runtime
Library home page: https://proxy.golang.org/github.com/!containerd/!containerd/@v/v1.3.0.zip
Path to dependency file: /chaincode/samplecc/go/go.mod
Path to vulnerable library: /chaincode/samplecc/go/go.mod,/chaincode/simple/go/go.mod
Dependency Hierarchy: - github.com/hyperledger/fabric-v1.4.1 (Root Library) - github.com/fsouza/go-dockerclient-v1.6.5 - github.com/docker/docker-v1.4.2-0.20191101170500-ac7306503d23 - :x: **github.com/Containerd/Containerd-v1.3.0** (Vulnerable Library)
Found in HEAD commit: 06b558f81526c46dc0f6c8241331ca0eb82a7307
Found in base branch: main
Vulnerability Details
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.
Publish Date: 2023-02-16
URL: CVE-2023-25173
CVSS 3 Score Details (5.3)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: Low - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: Low
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/containerd/containerd/security/advisories/GHSA-hmfx-3pcx-653p
Release Date: 2023-02-16
Fix Resolution: v1.5.18,v1.6.18
Step up your Open Source Security Game with Mend here