CVE-2026-135373 in LXD
Summary
by MITRE • 11/27/2026
Path traversal in container device path resolution and VM disk format detection in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project access, including an unprivileged local user through lxd-user, to read and modify arbitrary host files or Ceph RBD images and gain root privileges on the host via crafted device paths or QCOW2 backing file references.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
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 security flaw rooted in insufficient validation of device paths during container configuration and virtual machine disk format detection. This path traversal issue allows an attacker who has authenticated access to the LXD daemon with project-level permissions to manipulate how host resources are mapped into guest environments. The core technical failure lies in the resolution logic for device paths, which fails to properly sanitize or restrict input strings before they are processed by the underlying system calls that mount or bind specific files and block devices from the host operating system onto the container's filesystem namespace.
An authenticated user with project access can exploit this flaw by crafting malicious configuration payloads that specify arbitrary absolute paths on the host file system rather than restricted, sandboxed locations within the LXD storage pool. By leveraging path traversal sequences such as dot-dot-slash patterns or simply providing direct references to sensitive files like /etc/shadow or kernel modules, an attacker can force the LXD daemon to expose these host resources inside a container. This capability effectively bypasses the isolation boundaries that are fundamental to container security models, allowing processes running within the unprivileged guest environment to read and modify data on the host system with elevated privileges.
The impact of this vulnerability is severe because it facilitates privilege escalation from an unprivileged local user account directly to root access on the underlying host machine. In many deployments, users interact with LXD through lxd-user or similar wrapper scripts that operate without full administrative rights, assuming a high degree of isolation between containers and the host. However, by exploiting the path traversal in device resolution, attackers can mount sensitive host directories into their container environment. Once inside this mounted namespace, standard Linux privilege escalation techniques become viable, as the attacker gains read-write access to critical system files that control authentication mechanisms, sudo configurations, or kernel parameters.
Furthermore, the vulnerability extends beyond local file systems to include block storage devices such as Ceph RBD images and QCOW2 virtual disk formats used for virtual machines within LXD. The flaw in VM disk format detection allows an attacker to specify crafted backing file references that point to arbitrary host files instead of legitimate image stores. This enables the modification or exfiltration of data stored on these block devices, which may contain sensitive information from other tenants or critical infrastructure components if multi-tenancy is employed. The ability to alter QCOW2 metadata can also lead to further exploitation vectors where malformed disk images trigger additional bugs in QEMU or related virtualization layers.
From a classification perspective, this vulnerability aligns with CWE-22 Improper Limitation of a Pathname to a Restricted Directory and CWE-78 OS Command Injection if the crafted paths are subsequently executed by system processes. In terms of attack tactics, it maps directly to MITRE ATT&CK technique T1046 Network Service Discovery when used for reconnaissance or T1530 Data from Cloud Storage Object Databases when targeting Ceph RBD images. The exploitation chain typically involves initial access through valid credentials followed by lateral movement via privilege escalation on the host node, compromising the entire virtualization infrastructure rather than just a single container instance.
Mitigation strategies require immediate upgrading to patched versions of LXD that address these path validation issues. Administrators should ensure that all nodes in an LXD cluster are updated to version 4.0.16 or later for LTS releases, or 5.0.12, 5.21.10, and 6.10.2 respectively depending on the specific branch being utilized. In addition to patching, organizations should enforce strict project-based access controls using RBAC policies that limit which users can create devices with host path mounts. Implementing mandatory seccomp profiles or AppArmor/SELinux restrictions on LXD daemons can also provide a defense-in-depth layer by blocking unauthorized system calls related to mounting arbitrary filesystems even if the application logic is bypassed. Regular auditing of container configurations and monitoring for unusual mount operations in audit logs will help detect potential exploitation attempts before they result in full host compromise.