Skip to main content
EPSS 0.2%top 92%

CVE-2026-47766: CWE-61: UNIX Symbolic Link (Symlink) Following in containers crun

0
Medium
Published: 08/14/2026 (08/14/2026, 16:16:37 UTC)
Source: CVE Database V5
Vendor/Project: containers
Product: crun

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.

CVSS v4.0

Score 5.1medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

containers

crun

Affected versions
<1.28
GitHub Actionsmore threats →ai
containers/crun
pkg:github/containers/crun
Affected versions
<1.28

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/15/2026, 08:32:31 UTC

Technical Analysis

The vulnerability arises because crun versions before 1.28 open the container root filesystem's /dev directory without the O_NOFOLLOW flag, which prevents following symbolic links. When an OCI bundle's rootfs/dev is a symlink and the bundle configuration does not mount /dev, crun follows the symlink and creates default device nodes and standard I/O symlinks at the symlink target outside the container rootfs. This can lead to creation or replacement of files outside the container, including overwriting a pre-existing ptmx file with a forced symlink. The issue occurs during a local rootful crun replay and results in crun returning failure after these changes. Version 1.28 of crun addresses this issue by fixing the device setup behavior.

Potential Impact

An attacker with local root privileges running crun versions prior to 1.28 can cause crun to follow symlinks outside the container root filesystem and create or overwrite device nodes and symlinks on the host filesystem. This could lead to unintended modifications of host files, including replacing critical device symlinks such as ptmx. The vulnerability does not allow privilege escalation or remote exploitation by itself but can affect system integrity when exploited locally with root access.

Mitigation Recommendations

Upgrade crun to version 1.28 or later, where this issue is fixed. There is no indication of an official patch or temporary workaround other than upgrading. Since this is not a cloud service, remediation depends on applying the fixed version. Check the vendor's official release notes or advisories for confirmation and further guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-19T22:36:16.882Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a7f4200bf8831d53956d911

Added to database: 08/14/2026, 16:27:44 UTC

Last enriched: 08/15/2026, 08:32:31 UTC

Last updated: 09/29/2026, 18:11:18 UTC

Views: 66

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses