---
id: CVE-2026-63298
title: >-
  An improper neutralization of special elements vulnerability in LXD's NVIDIA
  instance configuration handling allows an authenticated attacker to inject
  arbitrary configuration directives
summary: >-
  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
  'nvidi…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: canonical
product: lxd
affected:
  - 'lxd >= 4.0.0, < 4.0.12'
  - 'lxd >= 5.0.0, < 5.0.8'
  - 'lxd >= 5.1, < 5.21.6'
  - 'lxd >= 6.0, <= 6.9'
patched:
  - lxd 5.21.6
published: '2026-08-12'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T15:20:11.603'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-63298'
references:
  - url: 'https://github.com/canonical/lxd/security/advisories/GHSA-vfh7-q59q-54v2'
    label: security@ubuntu.com
  - url: 'https://github.com/canonical/lxd/security/advisories/GHSA-vfh7-q59q-54v2'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.0069
epssPercentile: 0.50664
ingestedAt: '2026-09-11T17:50:33.511Z'
---

## Overview

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.

## Affected

- `lxd >= 4.0.0, < 4.0.12`
- `lxd >= 5.0.0, < 5.0.8`
- `lxd >= 5.1, < 5.21.6`
- `lxd >= 6.0, <= 6.9`

## Remediation

Upgrade past the affected range:

- `lxd 5.21.6`
