Incorrect Permission Assignment for Critical Resource Affecting github.com/containerd/containerd/oci package, versions <1.5.11 >=1.6.0 <1.6.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.09% (40th 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-7210238
  • published 5 Jun 2024
  • disclosed 25 Mar 2022
  • credit Andrew G. Morgan

How to fix?

Upgrade github.com/containerd/containerd/oci to version 1.5.11, 1.6.2 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource via containers that were incorrectly started with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). Normally, when executable programs have specified permitted file capabilities, otherwise unprivileged users and processes can execute those programs and gain the specified file capabilities up to the bounding set. Due to this bug, containers which included executable programs with inheritable file capabilities allowed otherwise unprivileged users and processes to additionally gain these inheritable file capabilities up to the container's bounding set. Containers which use Linux users and groups to perform privilege separation inside the container are most directly impacted. This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset.

Workaround

The entry point of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting.

CVSS Scores

version 3.1
Expand this section

Snyk

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

NVD

5.9 medium
Expand this section

SUSE

5.9 medium
Expand this section

Red Hat

4.8 medium