CVE-2026-115844: lxd: Host root code execution via raw.dnsmasq configuration injection by restricted project users
In LXD before 5.21.0 and 6.10.0, an OS command injection vulnerability allows an authenticated client restricted to a single project to execute arbitrary code as root on the host.
The raw.dnsmasq bridge network configuration key is not restricted to server administrators and is copied verbatim into the dnsmasq configuration file, so a user whose project keeps the default features.networks=false can have a bridge network created in the default project with an injected dhcp-script directive. This allows an attacker to make the host dnsmasq execute attacker-chosen code as root on a DHCP lease event and fully compromise the host.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
lxdto a version that resolves this vulnerability.Fixed in 5.21.0 - Upgrade
Upgrade
lxdto a version that resolves this vulnerability.Fixed in 6.10.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments running LXD versions before 5.21.0 or 6.10.0 are affected if an authenticated client is restricted to a single project whose features.networks setting remains at its default value of false. In that situation, the client can cause a bridge network to be created in the default project.
What access does an attacker need?
The attacker needs to be an authenticated LXD client with access restricted to a single project. They do not need server-administrator permissions because the raw.dnsmasq bridge network configuration key is not restricted to administrators.
What triggers execution of the injected code?
The attacker injects a dhcp-script directive through raw.dnsmasq configuration. Host dnsmasq executes the attacker-chosen code as root when a DHCP lease event occurs.
How can I determine whether an environment is vulnerable?
Check whether the LXD version is earlier than 5.21.0 or 6.10.0, and identify project-restricted authenticated clients whose projects have features.networks=false. Also review bridge network raw.dnsmasq configuration for unexpected dhcp-script directives.