CVE-2026-135375 in LXD
Summary
by MITRE • 11/27/2026
Untrusted search path and context handling in host-side instance helpers in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access or root inside an unprivileged container to execute arbitrary code as root on the host, read daemon memory, remount read-only shifted disks as read-write, and disrupt other projects' mounts via file API, SFTP, syscall interception, and disk hot-plug operations.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Canonical LXD prior to versions 4.0.16, 5.0.12, 5.21.10, and 6.10.2 represents a critical failure in the isolation boundaries between unprivileged containers and the host system. This flaw stems from improper handling of search paths and context within the host-side instance helpers that manage container operations. While LXD is designed to provide strong security through user namespace remapping and seccomp filters, these specific components failed to adequately restrict how file descriptors and execution contexts were passed between the unprivileged guest environment and the privileged daemon running on the host. This architectural weakness allows an attacker who has gained access to a restricted project or even root privileges within an unprivileged container to bypass standard containment mechanisms. The core issue lies in the trust model assumed by these helpers, which incorrectly assumes that inputs from containers are safe for direct processing without rigorous validation of their origin and intended use context.
From a technical perspective, this vulnerability is classified under CWE-427, Uncontrolled Search Path Element, as it involves the manipulation of file paths and execution contexts to execute arbitrary code with elevated privileges on the host system. The attack vector leverages multiple interaction points including the file API, SFTP services, syscall interception capabilities, and disk hot-plug operations. By exploiting these interfaces, an authenticated user can manipulate how the LXD daemon processes requests from within a container. Specifically, the attacker can trick the host-side helpers into executing commands or accessing resources in unintended ways due to the lack of strict context validation. This effectively breaks the fundamental security promise of unprivileged containers, where users are expected to operate without root-level access on the underlying infrastructure.
The operational impact of this vulnerability is severe and multifaceted. An attacker can achieve arbitrary code execution as root on the host machine, which grants complete control over the server environment. Beyond simple command execution, the flaw allows for reading daemon memory, potentially exposing sensitive information such as API keys, authentication tokens, or other containers' data stored in volatile memory. Furthermore, the vulnerability enables the remounting of read-only shifted disks as read-write, allowing persistent modification of host filesystems that were intended to be immutable. Additionally, attackers can disrupt operations for other projects by interfering with their mount points via file API manipulations, leading to denial-of-service conditions or data corruption across multiple tenant environments within a shared LXD deployment.
This incident aligns closely with MITRE ATT&CK techniques related to privilege escalation and defense evasion, specifically those involving host resource hijacking and process injection through container escape vectors. The ability to remount disks and intercept syscalls indicates a sophisticated level of access that goes beyond typical container breakout scenarios, touching upon infrastructure-level compromise. Organizations running affected versions of LXD must prioritize immediate remediation by upgrading to the patched releases listed above. In addition to version upgrades, administrators should review their project configurations to ensure strictest possible restrictions on file API and SFTP access for unprivileged users. Implementing network segmentation between management interfaces and container workloads can also mitigate the risk of exploitation from compromised instances. Regular auditing of syscall filters and mount namespaces is recommended to detect any anomalous behavior that might indicate an ongoing attempt to exploit similar context handling flaws in virtualization infrastructure.