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. Learn more

Threat Intelligence

EPSS
0.04% (15th 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 IDSNYK-GOLANG-GITHUBCOMOPENCONTAINERSRUNCLIBCONTAINER-5294661
  • published29 Mar 2023
  • disclosed29 Mar 2023
  • creditAkihiro Suda

Introduced: 29 Mar 2023

CVE-2023-25809  (opens in a new tab)
CWE-275  (opens in a new tab)

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