Skip to content
Heist/ feed
Back to feed
Medium

Incorrect Default Permissions in runc

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-29162
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 17:46 UTC · Revision 1

Source evidence

Incorrect Default Permissions in runc

core-osv · Original source

Published 17 May 2022, 00:00 UTC

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.

osv:CVE-2022-29162
Complete source record
{
  "id": "afde719496d990b438f99eed7491fbeec8417cf61a98f744fdbf52e205c9a926",
  "url": "https://osv.dev/vulnerability/CVE-2022-29162",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Incorrect Default Permissions in runc",
    "summary": "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.",
    "evidence": "osv:CVE-2022-29162",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-29162",
      "aliases": [
        "CVE-2022-29162",
        "GHSA-f3fp-gc8g-vw66",
        "GO-2022-0452"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/opencontainers/runc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a916309fff0f838eb94e928713dbc3c0d0ac7aa4"
                },
                {
                  "fixed": "d04de3a9b72d7a2455c1885fc75eb36d02cd17b5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d04de3a9b72d7a2455c1885fc75eb36d02cd17b5"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a916309fff0f838eb94e928713dbc3c0d0ac7aa4"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.1.2"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.1.0",
            "v1.0.0-rc2",
            "v0.0.8",
            "v0.0.7",
            "v0.0.6",
            "v0.0.5",
            "v0.0.4",
            "v0.0.2",
            "v0.0.3",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-29162.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.944650258Z",
      "provider": "osv",
      "references": [
        "https://github.com/opencontainers/runc/releases/tag/v1.1.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29162.json",
        "https://github.com/opencontainers/runc/security/advisories/GHSA-f3fp-gc8g-vw66",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AVPZBV7ISA7QKRPTC7ZXWKMIQI2HZEBB/",
        "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://nvd.nist.gov/vuln/detail/CVE-2022-29162",
        "https://github.com/opencontainers/runc/commit/d04de3a9b72d7a2455c1885fc75eb36d02cd17b5",
        "https://lists.debian.org/debian-lts-announce/2023/03/msg00023.html"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-276"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29162.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-29162",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497984,
  "published_at": "2022-05-17T00:00:00+00:00"
}