CVE-2026-127160: lxd: Configuration injection in VM disk device QEMU configuration
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 5.0.12 - Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 5.21.10 - Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 6.10.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated LXD user who has permission to create virtual machines in a restricted project can exploit it. The issue is relevant where such users are intended to be constrained by low-level VM restrictions.
What input is required to trigger the vulnerability?
The attacker needs to create or configure a VM disk device with a guest path containing quotes and line breaks. Those characters can inject QEMU configuration content and give control over the root QEMU process.
Which LXD releases are affected?
LXD releases before 5.0.12, 5.21.10, and 6.10.2 are affected. Upgrade to the applicable fixed release branch.