CVE-2026-136972 in LXD
Summary
by MITRE • 11/27/2026
Exposure of resource to wrong sphere in image template handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to read and overwrite host block and character devices via importing device nodes in an image's templates directory and accessing them through instance template endpoints.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified as CWE-732 improper control of resource permissions within a specific security context, specifically manifests in Canonical LXD prior to versions 4.0.16, 5.0.12, 5.2.10, and 6.10.2 through flawed image template handling mechanisms. This flaw allows an authenticated user operating under restricted project access conditions to bypass intended isolation boundaries by manipulating how device nodes are processed during the import of container images. The core technical deficiency lies in the system's failure to adequately sanitize or restrict the types of devices that can be embedded within image templates and subsequently exposed to running instances via template endpoints. By importing a crafted image containing specific block or character device nodes into its designated templates directory, an attacker leverages these endpoints to gain direct access to host-level hardware interfaces that should remain inaccessible under normal restricted project policies.
From an operational perspective, this vulnerability represents a severe escalation of privilege and isolation breach within the container runtime environment. LXD relies on project-based security models to ensure that users with limited permissions cannot interfere with other tenants or the underlying host infrastructure. However, by exploiting the device node import feature, an attacker can read sensitive data from block devices such as hard drives or storage volumes attached to the host system. Furthermore, the ability to overwrite these character and block devices enables malicious actors to modify critical system configurations, corrupt data stores, or potentially execute arbitrary code with elevated privileges depending on the specific hardware interface targeted. This effectively neutralizes the security guarantees provided by LXD projects for affected users, turning a restricted account into a potent vector for host compromise.
The attack vector aligns closely with ATT&CK techniques related to resource hijacking and unauthorized access to system resources. Specifically, it reflects behaviors associated with accessing peripheral devices or storage media that are not intended for user-level interaction within the containerized environment. The exploitation requires authenticated access but does not necessitate high privileges initially, making it particularly dangerous in multi-tenant cloud environments where users may have legitimate but limited access rights. Once inside the system, the attacker can leverage these device nodes to perform reconnaissance by reading disk contents or execute persistence mechanisms by modifying boot-related character devices. This capability undermines the fundamental principle of least privilege that governs container orchestration platforms like LXD.
Mitigation strategies must prioritize immediate patching to the latest stable releases where this flaw has been addressed, specifically versions 4.0.16 and above for the 4.0 series, 5.0.12 and above for the 5.0 series, 5.2.10 and above for the 5.2 series, and 6.10.2 and above for the 6.x series. In addition to updating software components, administrators should audit existing image templates for any suspicious device node entries that may have been introduced by compromised accounts prior to patching. Implementing stricter validation rules on accepted device types during template import processes can further harden the system against similar future exploits. Security teams should also monitor logs related to instance template endpoints and device imports for anomalous activity, particularly from users operating under restricted project scopes who attempt to access non-standard hardware interfaces. Regular review of LXD configuration settings regarding default security profiles and device restrictions is recommended to minimize the attack surface associated with container runtime operations.