CVE-2022-29162: Default inheritable capabilities for linux container should be empty

Summary

24/05/2022
Yes i
Moderate
5.9

CVE-2022-29162: Default inheritable capabilities for linux container should be empty. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package under scrutiny is github.com/opencontainers/runc, which is written in Go. Runc is a lightweight, portable container runtime that is used by various container engines and orchestrators. It provides an interface for creating and managing containers based on the Open Container Initiative (OCI) specifications. Runc allows users to execute processes within containers, providing isolation and resource management. However, a vulnerability has been discovered in runc that affects the default inheritable capabilities for Linux containers.

Vulnerability Detail

The vulnerability in runc (CVE-2022-29162) allows processes executed with non-empty inheritable Linux process capabilities. This creates an atypical Linux environment and enables programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). Although this bug does not affect the container security sandbox, as the inheritable set never contained more capabilities than the container's bounding set, it still poses a security risk. An attacker could potentially exploit this vulnerability to gain elevated privileges within the container. The vulnerability has a CVSS score of 5.9.

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 →

Conclusion

The vulnerability in runc (CVE-2022-29162) exposes containers to potential privilege escalation. To mitigate this risk, users should update to runc version 1.1.2 or later and ensure that the container's configuration does not include any inheritable capabilities. For further support on vulnerability remediation, contact DevNack.com.

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

Share this vulnerability

FAQ

Runc is a lightweight, portable container runtime used by various container engines and orchestrators. It allows users to create and manage containers based on the OCI specifications.

The vulnerability allows processes within containers to have non-empty inheritable Linux process capabilities, potentially enabling privilege escalation within the container.

No, the container security sandbox is not affected by this vulnerability as the inheritable set never contained more capabilities than the container's bounding set.

To fix this vulnerability, update to runc version 1.1.2 or later and ensure that the container's configuration does not include any inheritable capabilities.

No, there is no workaround available for this vulnerability. Updating to the fixed version is the recommended solution.

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