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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (55th 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-GITHUBCOMCONTAINERDCONTAINERDOCI-3323388
  • 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/oci to version 1.5.18, 1.6.18 or higher.

Overview

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 Scores

version 3.1