Description
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 -> pts/ptmx` symlink. Version 1.28 fixes the issue.
Published: 2026-08-14
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

crun, an OCI container runtime written in C, fails to open the container rootfs /dev directory without the O_NOFOLLOW flag before version 1.28. When an OCI bundle contains a symlink at rootfs/dev and the container configuration does not mount /dev, crun follows that symlink and creates default device nodes and stdio symlinks at the symlink target outside the container root filesystem. The result is that files on the host can be overwritten, for example the pre‑existing ptmx file can be replaced by crun’s forced ptmx → pts/ptmx symlink. Based on the description, it is inferred that an attacker who can craft a bundle with such a symlink could overwrite arbitrary host files, potentially leading to local privilege escalation or denial of service.

Affected Systems

The affected product is crun, the open‑source OCI container runtime from containers:crun. All releases prior to version 1.28 are vulnerable. The fix was introduced in 1.28, so any crun runtime older than that must be updated before use.

Risk and Exploitability

The CVSS base score of 5.1 indicates moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local rootful crun execution where the attacker controls the OCI bundle, based on the description. Because the flaw requires local access to the crun binary and the ability to craft a bundle with a dev symlink, the exploitation effort is moderate. Based on the description, a successful exploit would allow the attacker to create file system objects outside the container, potentially compromising host integrity or confidentiality.

Generated by OpenCVE AI on August 14, 2026 at 17:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade crun to version 1.28 or later
  • Ensure that the OCI bundle does not contain a symlink at rootfs/dev and that /dev is not omitted from the container configuration
  • Run crun in non‑rootful mode or limit host filesystem access to protect critical system files

Generated by OpenCVE AI on August 14, 2026 at 17:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Containers
Containers crun
Vendors & Products Containers
Containers crun

Fri, 14 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Description 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 -> pts/ptmx` symlink. Version 1.28 fixes the issue.
Title crun follows rootfs /dev symlink while creating default devices
Weaknesses CWE-61
References
Metrics cvssV4_0

{'score': 5.1, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-14T16:32:20.537Z

Reserved: 2026-05-19T22:36:16.882Z

Link: CVE-2026-47766

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-14T17:18:18.723

Modified: 2026-08-14T17:18:18.723

Link: CVE-2026-47766

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T18:00:12Z

Weaknesses
  • CWE-61

    UNIX Symbolic Link (Symlink) Following