CVE-2026-63298

LXD arbitrary lxc.conf directive injection via NVIDIA instance configuration

Published Aug 12, 2026 CVSS 3.1 · 8.7 High EPSS < 1% KEV · Not listed
Description
An improper neutralization of special elements vulnerability in LXD's NVIDIA instance configuration handling allows an authenticated attacker to inject arbitrary configuration directives. By supplying newline characters within the 'nvidia.driver.capabilities' or 'nvidia.require.*' configuration values, an attacker can manipulate the generated lxc.conf file. This flaw enables the attacker to execute arbitrary code on the host system with the privileges of the LXD daemon.

Analysis

AI-generated

Technical impact

The vulnerability is caused by improper neutralization of special elements in LXD's handling of NVIDIA instance configuration. By inserting newline characters into the 'nvidia.driver.capabilities' or 'nvidia.require.*' values, an attacker can inject arbitrary configuration directives into the generated lxc.conf file. This allows the attacker to run arbitrary code on the host with the privileges of the LXD daemon, leading to potential full system compromise.

Affected Systems

Canonical LXD releases before 4.0.12, 5.0.8, or 5.12.6 are affected.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity vulnerability. EPSS is not available, but the lack of a KEV listing suggests no known public exploits yet. The flaw requires an authenticated attacker with access to the LXD API; the attacker can manipulate the NVIDIA configuration stored by the LXD daemon, inject new directives, and execute code with daemon privileges.

Remediation

Vendor Solution

Upgrade to LXD version 4.0.12 or later, 5.0.8 or later, or 5.12.6 or later.


OpenCVE Recommended Actions

  • Upgrade Canonical LXD to ≥4.0.12, ≥5.0.8, or ≥5.12.6 depending on your release line.
  • Validate and sanitize all user-supplied NVIDIA configuration parameters to remove newline characters and other potentially malicious content before persisting them.
  • If NVIDIA support is not required, disable or remove NVIDIA instance configuration to eliminate the attack surface.

Generated by OpenCVE AI on August 12, 2026 at 22:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Canonical
Canonical lxd
Vendors & Products Canonical
Canonical lxd
Type Values Removed Values Added
Description An improper neutralization of special elements vulnerability in LXD's NVIDIA instance configuration handling allows an authenticated attacker to inject arbitrary configuration directives. By supplying newline characters within the 'nvidia.driver.capabilities' or 'nvidia.require.*' configuration values, an attacker can manipulate the generated lxc.conf file. This flaw enables the attacker to execute arbitrary code on the host system with the privileges of the LXD daemon.
Title LXD arbitrary lxc.conf directive injection via NVIDIA instance configuration
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Aug 13, 2026, 2:33 PM
Reserved
Jul 16, 2026, 9:49 AM
Status
Analyzed
Published
Aug 12, 2026, 8:17 PM
Modified
Oct 24, 2026, 4:10 PM