CVE-2026-136974: lxd: Configuration injection in liblxc instance configuration generation
Configuration injection in liblxc instance configuration generation in Canonical LXD before 6.10.2, 5.21.10, 5.0.12, 4.0.16 allows an authenticated user with restricted project access or a local user of the LXD user socket to execute arbitrary commands as root on the host via line breaks in instance configuration keys and values.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.10.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.21.10 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.0.12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.0.16
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with restricted project access can exploit it. A local user able to access the LXD user socket can also exploit it.
What access and technique are required for exploitation?
The attacker must be able to supply instance configuration keys or values. Exploitation uses line breaks in those keys or values to inject configuration and execute commands as root on the host.
Which LXD versions are affected?
Canonical LXD versions before 6.10.2, 5.21.10, 5.0.12, and 4.0.16 are affected.