CVE-2022-29162
Incorrect Default Permissions in runc
Also known as GHSA-f3fp-gc8g-vw66, GO-2022-0452
Mitigation
- Upgrade github.com/opencontainers/runc to 1.1.2 or later.
Who should check
- Projects that depend on Go package github.com/opencontainers/runc (< 1.1.2)
- Anyone running opencontainers runc < 1.1.2
Vulnerability facts
- Affected
- github.com/opencontainers/runc < 1.1.2
- Fixed in
- 1.1.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 0.42% chance of exploitation in 30 days (percentile 28, 2026-11-26)
- CWE
- CWE-276
- Modified
Description
runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where `runc exec --cap` created processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. This bug has been fixed in runc 1.1.2. This fix changes `runc exec --cap` behavior such that the additional capabilities granted to the process being executed (as specified via `--cap` arguments) do not include inheritable capabilities. In addition, `runc spec` is changed to not set any inheritable capabilities in the created example OCI spec (`config.json`) file.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/opencontainers/runc | < 1.1.2 | 1.1.2 | osv |
| opencontainers runc | < 1.1.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-29162. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-29162.md Affected: github.com/opencontainers/runc < 1.1.2 Fixed in: 1.1.2 Steps: 1. Search this machine and project for github.com/opencontainers/runc (Go), opencontainers runc: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB/
- https://nvd.nist.gov/vuln/detail/CVE-2022-29162
Other
- https://github.com/opencontainers/runc/releases/tag/v1.1.2
- https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y
FAQ
Is CVE-2022-29162 being exploited?
There is no confirmed exploitation: CVE-2022-29162 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-29162?
Medium: CVSS 5.9 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-29162?
github.com/opencontainers/runc < 1.1.2.
Is there a fix for CVE-2022-29162?
Yes. Fixed in 1.1.2. Upgrade github.com/opencontainers/runc to 1.1.2 or later.
How do I check if I'm affected by CVE-2022-29162?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.