CVE-2022-29162: Default inheritable capabilities for linux container should be empty in github.com/opencontainers/runc

Summary

21/08/2024
Yes i
Moderate
5.9

CVE-2022-29162: Default inheritable capabilities for linux container should be empty in github.com/opencontainers/runc. Affects github.com/opencontainers/runc versions < 1.1.2. Fixed in 1.1.2. How to fix ↓

Also tracked for

The same CVE-2022-29162 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The package under scrutiny is github.com/opencontainers/runc, which is written in Go. It is a command-line tool for spawning and running containers according to the Open Container Initiative (OCI) specification. The package provides a runtime for creating and managing Linux containers. Containers are isolated environments that encapsulate applications and their dependencies, allowing for efficient and secure deployment. However, a vulnerability has been identified in the default inheritable capabilities for Linux containers in runc.

Vulnerability Detail

The vulnerability in github.com/opencontainers/runc arises from the default inheritable capabilities for Linux containers not being empty. Inheritable capabilities are a set of permissions that can be inherited by child processes. If the inheritable capabilities are not properly configured, it can lead to privilege escalation and unauthorized access within the container. Attackers could exploit this vulnerability to gain elevated privileges and potentially compromise the host system. The vulnerability affects versions 0.0.0 up to and including 1.1.2 of the package.

How To Fix

Latest published version: v1.5.2 as of 22 Oct 2026

go get github.com/opencontainers/runc@v1.5.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.2

This is the first release that contains the fix.

go get github.com/opencontainers/runc@v1.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the package to address the issue.

Conclusion

In conclusion, the default inheritable capabilities for Linux containers in github.com/opencontainers/runc should be empty to prevent privilege escalation and unauthorized access. Users are advised to update to version 1.1.3 or later of the package to mitigate this vulnerability.

See every vulnerability recorded for github.com/opencontainers/runc →

Share this vulnerability

FAQ

github.com/opencontainers/runc is a Go package that provides a runtime for creating and managing Linux containers according to the Open Container Initiative (OCI) specification.

Inheritable capabilities are a set of permissions that can be inherited by child processes within a container. They determine the privileges available to processes running within the container.

The vulnerability could allow attackers to gain elevated privileges within a container, potentially leading to unauthorized access and compromise of the host system.

Versions 0.0.0 up to and including 1.1.2 of github.com/opencontainers/runc are affected by this vulnerability.

To fix this vulnerability, it is recommended to update to version 1.1.3 or later of github.com/opencontainers/runc.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/opencontainers/runc.

How To Fix

Latest published version: v1.5.2 as of 22 Oct 2026

go get github.com/opencontainers/runc@v1.5.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.2

This is the first release that contains the fix.

go get github.com/opencontainers/runc@v1.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback