Improper Privilege Management Affecting github.com/containerd/containerd/pkg/cri/server package, versions <1.5.18>=1.6.0 <1.6.18


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.54% (42nd percentile)

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 Learn

Learn about Improper Privilege Management vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCONTAINERDCONTAINERDPKGCRISERVER-3323387
  • published16 Feb 2023
  • disclosed16 Feb 2023
  • creditUnknown

Introduced: 16 Feb 2023

CVE-2023-25173  (opens in a new tab)
CWE-269  (opens in a new tab)

How 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.

CVSS Base Scores

version 3.1