CVE-2022-29162
Incorrect Default Permissions in runc
Check your servers for CVE-2022-29162
The Vulnpocalypse agent sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-29162 affects runc, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.42%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 28.2% of all scored CVEs. Scores of 27 Nov 2026.
The assessment of CISA (SSVC, 23 Apr 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-276 Incorrect Default Permissions
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| runc |
affected < 1.1.2
|
Is my server affected?
Find the installed version of runc and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i runc
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-29162 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-29162RHEL, Rocky, Alma, Fedora
rpm -q runc
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-29162Alpine
apk list --installed | grep -i runcWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-29162
trivy image --scanners vuln IMAGE | grep CVE-2022-29162
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the agent.
References
Advisories
- FEDORA-2022-91b747a0d7 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-e980dc71b1 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-d1f55f8fd0 lists.fedoraproject.org · vendor advisory
Other references
- https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66 github.com
- https://github.com/opencontainers/runc/commit/d04de3a9b72d7a2455c1885fc75eb36d02cd17b5 github.com
- https://github.com/opencontainers/runc/releases/tag/v1.1.2 github.com
- [debian-lts-announce] 20230327 [SECURITY] [DLA 3369-1] runc security update lists.debian.org · mailing list
Source: the record CVE-2022-29162 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse