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

    Threat Intelligence

    EPSS
    0.13% (50th 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 ID SNYK-GOLANG-GITHUBCOMCONTAINERDCONTAINERDOCI-3323388
  • published 16 Feb 2023
  • disclosed 16 Feb 2023
  • credit Unknown

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
Expand this section

Snyk

Recommended
5.3 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

7.8 high
Expand this section

SUSE

5.3 medium
Expand this section

Red Hat

7.3 high