Improper Privilege Management Affecting github.com/containerd/containerd/pkg/cri/server package, versions <1.5.18 >=1.6.0 <1.6.18
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMCONTAINERDCONTAINERDPKGCRISERVER-3323387
- published 16 Feb 2023
- disclosed 16 Feb 2023
- credit Unknown
Introduced: 16 Feb 2023
CVE-2023-25173 Open this link in a new tabHow to fix?
Upgrade github.com/containerd/containerd/pkg/cri/server
to version 1.5.18, 1.6.18 or higher.
Overview
github.com/containerd/containerd/pkg/cri/server is an industry-standard container runtime with an emphasis on simplicity, robustness and portability. It is available as a daemon for Linux and Windows, which can manage the complete container lifecycle of its host system: image transfer and storage, container execution and supervision, low-level storage and network attachments, etc.
Affected versions of this package are vulnerable to Improper Privilege Management such that 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.
Workaround
Users should ensure that the "USER $USERNAME"
Dockerfile instruction is not used. Instead, users should set the container entrypoint to a value similar to ENTRYPOINT ["su", "-", "user"]
to allow su
to properly set up supplementary groups.