CVE-2026-135379

lxd: Improper control of code generation in container configuration and restriction checks

Published Nov 26, 2026 CVSS 4.0 · 6.5 Medium EPSS n/a KEV · Not listed
Description
Improper control of code generation and project restriction enforcement in container configuration handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to execute arbitrary commands as root on the host, crash the daemon, and alter shared bridge DHCP assignments via image-supplied LXC configuration, concurrent rename races during updates, and unvalidated syscall or hardware address settings.

Analysis

AI-generated

Technical impact

LXD container manager in Canonical before version 4.0.16, 5.0.12, 5.21.10, or 6.10.2 suffers from improper code generation and restriction checks, allowing an authenticated user confined to a project to run arbitrary shell commands as root on the host, crash the daemon, and manipulate bridge configurations via image‑supplied LXC configuration. This vulnerability is classified as CWE‑94, leading to remote code execution and denial of service.

Affected Systems

Affected devices are systems running Canonical LXD prior to 4.0.16, 5.0.12, 5.21.10, or 6.10.2. The flaw manifests when untrusted images are imported into a project with restricted user roles, or when concurrent rename races occur during package updates. Any environment using the default LXD configuration for shared networking or syscalls is susceptible unless updated.

Risk and Exploitability

The CVSS score of 6.5 indicates medium severity, while no EPSS score is reported and the vulnerability is not in the CISA KEV catalog. Still, because an attacker only needs authenticated project access, the exposure is significant; the flaw can be bypassed if project permissions grant a user the ability to upload images. Therefore, evaluating the likelihood of abuse depends on the organization’s LXD deployment and user role definitions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to LXD 4.0.16, 5.0.12, 5.21.10, or 6.10.2 or later, which include the fix for improper code generation and project restrictions.
  • Limit project permissions so that only trusted users can import images and manage container configurations; enforce strict validation of LXC configuration files before they are applied.
  • Disable or sanitize the bridge DHCP and unvalidated syscall options in container configuration to prevent manipulation of shared networking and hardware address settings.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Improper control of code generation and project restriction enforcement in container configuration handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to execute arbitrary commands as root on the host, crash the daemon, and alter shared bridge DHCP assignments via image-supplied LXC configuration, concurrent rename races during updates, and unvalidated syscall or hardware address settings.
Title lxd: Improper control of code generation in container configuration and restriction checks
Weaknesses CWE-94
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-94

    Improper Control of Generation of Code ('Code Injection')

Sources

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