{"id":"CVE-2022-29162","published":"2022-05-17T00:00:00Z","modified":"2025-04-23T18:25:42Z","title":"Incorrect Default Permissions in runc","vendor":"opencontainers","product":"runc","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0039,"percentile":0.34,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66","tags":[]},{"url":"https://github.com/opencontainers/runc/commit/d04de3a9b72d7a2455c1885fc75eb36d02cd17b5","tags":[]},{"url":"https://github.com/opencontainers/runc/releases/tag/v1.1.2","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D77CKD3AXPMU4PMQIQI5Q74SI4JATNND/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GPQU4YC4AAY54JDXGDQHJEYKSXXG5T2Y/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html","tags":["mailing-list"]}],"priority":{"score":10.9,"factors":[{"name":"EPSS percentile","points":6.8},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"opencontainers","affectedVersions":[{"vendor":"opencontainers","product":"runc","versions":["< 1.1.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:07:31.141979Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/opencontainers/runc","vulnerableRanges":["<1.1.2"],"patched":["1.1.2"],"from":["GHSA-f3fp-gc8g-vw66","GO-2022-0452"],"provenance":"source"}],"summary":{"text":"The runc container runtime from opencontainers, prior to version 1.1.2, has an incorrect default permissions flaw in how runc exec --cap sets process capabilities, granting processes non-empty inheritable Linux capabilities. An attacker with local access and no privileges required can exploit this by running a program with inheritable file capabilities, which elevates those capabilities into the permitted set during execve(2), with no user interaction or special configuration needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:59:43Z"},"euvd":{"id":"EUVD-2022-3675","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-opencontainers-runc-cve-2022-29162","children":[{"from":"CVE-2022-29162","to":"CVE-2025-27612","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"However, setting inherited caps in any case for tenant container can lead to elevation of capabilities, similar to CVE-2022-29162.","from":"CVE.org","in":"CVE-2025-27612"},{"kind":"osv-related","provenance":"source","id":"GHSA-f3fp-gc8g-vw66","via":"related"},{"kind":"osv-related","provenance":"source","id":"GO-2025-3543","via":"reference","url":"https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66"},{"kind":"osv-related","provenance":"source","id":"GHSA-5w4j-f78p-4wh9","via":"reference","url":"https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66"}]}],"packageHistory":[{"cve":"CVE-2019-19921","published":"2020-02-12","fixed":"1.0.0-rc9.0.20200122160610-2fc03cc11c77","kev":false},{"cve":"CVE-2021-30465","published":"2021-05-27","fixed":"1.0.0-rc95","kev":false},{"cve":"CVE-2021-43784","published":"2021-12-06","fixed":"1.1.0","kev":false,"link":{"from":"CVE-2021-43784","to":"CVE-2022-29162","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/opencontainers/runc","fromFixed":"1.1.0","toFixed":"1.1.2","daysApart":162}]}},{"cve":"CVE-2022-29162","published":"2022-05-17","fixed":"1.1.2","kev":false},{"cve":"CVE-2023-25809","published":"2023-03-29","fixed":"1.1.5","kev":false,"link":{"from":"CVE-2022-29162","to":"CVE-2023-25809","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/opencontainers/runc","fromFixed":"1.1.2","toFixed":"1.1.5","daysApart":316}]}},{"cve":"CVE-2023-27561","published":"2023-03-03","fixed":"1.1.5","kev":false,"link":{"from":"CVE-2022-29162","to":"CVE-2023-27561","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/opencontainers/runc","fromFixed":"1.1.2","toFixed":"1.1.5","daysApart":290}]}},{"cve":"CVE-2023-28642","published":"2023-03-29","fixed":"1.1.5","kev":false,"link":{"from":"CVE-2022-29162","to":"CVE-2023-28642","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/opencontainers/runc","fromFixed":"1.1.2","toFixed":"1.1.5","daysApart":316}]}}],"package":"Go:github.com/opencontainers/runc"}}