Elevated Capability Vulnerability in runc: CVE-2022-29162

runc Updated 02 Oct 2025

Summary

17/05/2022
N/A
Yes i
High
7.8

CVE-2022-29162: runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. Affects runc across 3 version ranges.

< 1.0.0~rc93+ds1-5+deb11u2 < a916309fff0f838eb94e928713dbc3c0d0ac7aa4 < d04de3a9b72d7a2455c1885fc75eb36d02cd17b5

Fixed in 1.0.0~rc93+ds1-5+deb11u2. How to fix ↓

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

runc is a command-line interface tool designed for spawning and managing containers on Linux systems, adhering to the Open Container Initiative (OCI) specifications. It is widely used in container orchestration platforms and provides essential functionalities for container lifecycle management. The vulnerability in question affects versions of runc prior to 1.1.2, where a bug allowed processes to inherit non-empty Linux process capabilities, potentially leading to unintended privilege escalation.

Vulnerability Detail

The vulnerability, identified as CVE-2022-29162, originates from a bug in runc that allowed the runc exec --cap command to create processes with inheritable Linux process capabilities. This created an atypical environment where programs with inheritable file capabilities could elevate their capabilities to the permitted set during the execve(2) system call. Although this bug did not compromise the container security sandbox, it posed a risk of privilege escalation within the container environment. The issue has been resolved in runc version 1.1.2, which modifies the behavior of runc exec --cap to exclude inheritable capabilities.

How To Fix

Minimum fixed version

1.0.0~rc93+ds1-5+deb11u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade runc

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

Workaround

As a temporary workaround, users can avoid using the runc exec --cap command until they can upgrade to a secure version. Additionally, limiting the use of inheritable capabilities in container configurations can help reduce the risk of privilege escalation.

Conclusion

CVE-2022-29162 represents a significant vulnerability in runc that could allow privilege escalation through improper handling of Linux process capabilities. Users are strongly advised to upgrade to the latest version to ensure the security of their containerized applications. Temporary workarounds are available, but upgrading is the most effective solution.

See every vulnerability recorded for runc →

Share this vulnerability

FAQ

CVE-2022-29162 is a vulnerability in runc that allows processes to inherit non-empty Linux process capabilities, potentially leading to privilege escalation.

Versions of runc prior to 1.1.2 are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2022-29162 is 7.8, indicating a high severity level.

If immediate upgrading is not possible, refrain from using the runc exec --cap command and limit the use of inheritable capabilities in your container configurations.

Related vulnerabilities

Recent vulnerabilities recorded for runc.

How To Fix

Minimum fixed version

1.0.0~rc93+ds1-5+deb11u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade runc

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