{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.28"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "54f16ffbefcd022bf032af768b5c5ce075c18bfc"
            }
          ],
          "repo": "https://github.com/containers/crun",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-7vwr-4279-7gq5"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-61"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47766.json"
  },
  "details": "crun is an open source OCI Container Runtime fully written in C. Prior to version 1.28, crun's default device setup opens the container rootfs `/dev` directory without `O_NOFOLLOW`. If an OCI bundle contains `rootfs/dev` as a symlink and the bundle configuration does not mount `/dev`, crun follows that symlink and creates the default device nodes and stdio symlinks at the symlink target outside the container rootfs. In a local rootful crun replay, this created fixed device nodes and symlinks outside the rootfs before crun returned failure. A pre-existing file named `ptmx` in the target directory was also replaced by crun's forced `ptmx -\u003e pts/ptmx` symlink. Version 1.28 fixes the issue.",
  "id": "CVE-2026-47766",
  "modified": "2026-08-16T03:30:52.855945542Z",
  "published": "2026-08-14T16:16:37.525Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/containers/crun/releases/tag/1.28"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47766.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/containers/crun/security/advisories/GHSA-7vwr-4279-7gq5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47766"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "crun follows rootfs /dev symlink while creating default devices"
}