CVE-2026-115844

lxd: Host root code execution via raw.dnsmasq configuration injection by restricted project users

Published Nov 26, 2026 CVSS 4.0 · 6.5 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is an OS command injection that occurs in LXD before version 5.21.0 and 6.10.0. An authenticated user who is limited to a single project can inject arbitrary commands into the raw.dnsmasq key, which LXD copies verbatim to the host’s dnsmasq configuration. When a DHCP lease event triggers dnsmasq, the injected dhcp-script runs with root privileges, allowing an attacker to fully compromise the host system.

Affected Systems

The affected products are Canonical LXD 5.x versions older than 5.21.0 and 6.x versions older than 6.10.0. Users who create bridge networks in a project where features.networks remains false are susceptible, as the raw.dnsmasq configuration is not restricted to system administrators.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity, and the EPSS score is not available. The vulnerability is not listed in the CISA KEV catalog. Attackers need only have authenticated access to a project in LXD; they can supply malicious input via the raw.dnsmasq key. Because the injected script runs on every DHCP lease event, the impact is host‑wide remote code execution executed as root.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LXD to version 5.21.0 or later or 6.10.0 or later; this version contains the patch that prevents untrusted raw.dnsmasq injection.
  • Disable the raw.dnsmasq configuration for all projects by setting features.networks to false in project settings and restrict project creation to administrators only.
  • Ensure that any bridge network created in a project has the dnsmasq config sanitized or removed; monitor configuration changes for unexpected dhcp-script directives.

Generated by OpenCVE AI on November 27, 2026 at 00:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title lxd: Host root code execution via raw.dnsmasq configuration injection by restricted project users
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 6.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}

Subscriptions

No data.

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Nov 26, 2026, 11:16 PM
Reserved
Oct 23, 2026, 5:20 PM
Status
Deferred
Published
Nov 27, 2026, 12:16 AM
Modified
Nov 27, 2026, 12:16 AM