Insecure Permissions Affecting github.com/opencontainers/runc/libcontainer package, versions <1.1.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (14th 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-GITHUBCOMOPENCONTAINERSRUNCLIBCONTAINER-5294661
  • published 29 Mar 2023
  • disclosed 29 Mar 2023
  • credit Akihiro Suda

How to fix?

Upgrade github.com/opencontainers/runc/libcontainer to version 1.1.5 or higher.

Overview

github.com/opencontainers/runc/libcontainer is a package for a modern container runtime.

Affected versions of this package are vulnerable to Insecure Permissions such that a container may gain the write access to user-owned cgroup hierarchy /sys/fs/cgroup/user.slice/... on the host .

Note: Other users's cgroup hierarchies are not affected.

Workaround

Users who are unable to upgrade to the fixed version can:

  1. Unshare the cgroup namespace (docker|podman|nerdctl) run --cgroupns=private). This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts.

  2. (very rare): add /sys/fs/cgroup to maskedPaths

CVSS Scores

version 3.1
Expand this section

Snyk

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

NVD

6.3 medium
Expand this section

SUSE

2.5 low
Expand this section

Red Hat

2.5 low