CVE-2022-29162
Incorrect Default Permissions in runc
Reported by github_m · Published May 17, 2022
github.com/opencontainers/runc is fixed in v1.1.2 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/opencontainers/runc | Go Modules | v1.1.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| opencontainers | runc | < 1.1.2 |
| opencontainers | runc | 0 |
| amazon:2023 | runc | 0 |
| wolfi | ctop | 0 |
| wolfi | podman | 0 |
| alpine | runc | 0 |
| wolfi | runc | * |
| chainguard | ctop | 0 |
| chainguard | podman | 0 |
| chainguard | podman-fips | 0 |
| github.com | opencontainers/runc | 0 |
| chainguard | runc | * |
| github.com | opencontainers/runc/libcontainer | 0 |
| arch | runc | 1.1.1-1 |
Timeline
- May 17, 2022 CVE Published
- May 18, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (10 in total, the first dated here)
- Jun 27, 2026 Coalition ESS Score
- Aug 11, 2026 CVE Updated
- Oct 13, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-29162
vulnetix vdb fixes CVE-2022-29162
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-29162/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-91b747a0d7 vendor-advisory
- FEDORA-2022-e980dc71b1 vendor-advisory
- FEDORA-2022-d1f55f8fd0 vendor-advisory
- [debian-lts-announce] 20230327 [SECURITY] [DLA 3369-1] runc security update mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-29162 advisory
- https://github.com/advisories/GHSA-f3fp-gc8g-vw66 advisory