HeadlinesBriefing favicon HeadlinesBriefing.com

Critical Vulnerability in Incus Allows Container Escape

DEV Community •
×

A critical vulnerability, identified as CVE-2026-23954, has been discovered in the Incus container manager. This flaw, rated with a CVSS score of 8.7, allows privileged container users to escape confinement and execute arbitrary code as root on the host system. The issue stems from a path traversal and symbolic link vulnerability, enabling attackers to manipulate user-supplied paths in container image templates.

Incus, a fork of LXD, is affected in versions up to 6.20.0 and 6.0.5. By crafting a malicious image with a specific `metadata.yaml`, attackers can trick the root-privileged Incus daemon into accessing files outside the container's root filesystem. This vulnerability is particularly concerning as it leads to host-level Remote Code Execution (RCE), posing significant security risks.

The mitigation strategies include upgrading to the patched versions, Incus 6.21.0 or 6.0.6, and restricting access to the 'incus' and 'incus-admin' groups. Additionally, disabling unprivileged user access to custom image imports can enhance security. Users are advised to audit existing images for suspicious symlinks or metadata entries.

This vulnerability underscores the importance of vigilant security practices in container management. As Incus is widely used, prompt action is essential to prevent potential exploits. Developers and system administrators should prioritize these updates to safeguard their environments against this critical flaw.