CVE-2026-127160 in LXD
Summary
by MITRE • 11/27/2026
Configuration injection in virtual machine disk device handling in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with VM creation permissions in a restricted project to bypass low-level VM restrictions and control the root QEMU process via quotes and line breaks in a disk device's guest path.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified as configuration injection within Canonical LXD prior to versions 5.0.12, 5.21.10, and 6.10.2 represents a critical security flaw in the handling of virtual machine disk devices. This issue specifically affects environments where users possess permissions to create virtual machines but are restricted by project-level policies designed to limit their operational scope. The core technical deficiency lies in the insufficient sanitization or validation of input parameters related to guest paths for disk devices. When an authenticated user submits a configuration request, the system fails to adequately escape special characters such as quotes and line breaks within the specified path string. This lack of proper escaping allows these characters to be interpreted not merely as part of the file path but as executable syntax by the underlying QEMU hypervisor process that manages the virtual machine's hardware emulation.
From a technical perspective, this flaw constitutes an injection vulnerability where user-supplied data is directly concatenated into configuration files or command-line arguments without adequate validation. By injecting quotes and line breaks, an attacker can effectively break out of the intended string context within the QEMU configuration structure. This structural manipulation enables the insertion of arbitrary commands or parameters that are then executed by the root-level QEMU process running on the host system. The severity is amplified because LXD typically runs with elevated privileges to manage virtualization resources, meaning any code execution achieved through this injection occurs at a high privilege level. Consequently, an attacker can bypass low-level VM restrictions imposed by project policies, effectively escalating their access from a confined container or limited user context to full control over the host's hypervisor layer.
The operational impact of this vulnerability is severe, as it allows for complete compromise of the underlying infrastructure hosting LXD instances. An authenticated user with minimal permissions can leverage this flaw to execute arbitrary commands on the host system, potentially leading to data exfiltration, lateral movement within the network, or denial of service by destabilizing critical virtualization services. This scenario aligns closely with CWE-78 Improper Neutralization of Special Elements used in an OS Command and CWE-94 Improper Control of Generation of Code, reflecting a failure to properly sanitize inputs before their use in system-level operations. Furthermore, the exploitation technique maps to MITRE ATT&CK techniques such as T1059 Command and Scripting Interpreter for executing injected commands and potentially T1610 Drop Binary if the attacker chooses to deploy additional payloads via the compromised QEMU process.
Mitigation strategies must prioritize immediate patching of all affected LXD installations to versions 5.0.12, 5.21.10, or later, where these input validation mechanisms have been corrected. In addition to software updates, administrators should enforce strict least-privilege principles by auditing user permissions and ensuring that VM creation rights are granted only to trusted entities with a demonstrated need for such access. Network segmentation can also help limit the blast radius of any potential exploitation by isolating LXD hosts from sensitive network segments. Continuous monitoring of host-level process activity and configuration changes should be implemented to detect anomalous behavior indicative of injection attempts, providing an additional layer of defense against this type of privilege escalation attack.