# CVE-2022-29162: Incorrect Default Permissions in runc

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-276
- **Aliases:** GHSA-f3fp-gc8g-vw66, GO-2022-0452
- **Published:** 2022-05-17T00:00:00.000Z
- **Modified:** 2026-09-10T03:49:33.065Z

## Who should check

- Projects that depend on Go package github.com/opencontainers/runc (\< 1.1.2)
- Anyone running opencontainers runc \< 1.1.2

## 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

- Go `github.com/opencontainers/runc`: affected \< 1.1.2; fixed 1.1.2 (osv)
- opencontainers runc: \< 1.1.2 (cvelist)

## Mitigation

- Upgrade github.com/opencontainers/runc to 1.1.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-29162>
- patch: <https://github.com/opencontainers/runc/commit/d04de3a9b72d7a2455c1885fc75eb36d02cd17b5>
- other: <https://github.com/opencontainers/runc/releases/tag/v1.1.2>
- other: <https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-29162>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-f3fp-gc8g-vw66> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2022-0452> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-29162> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-29162>
