8.7high
LXD arbitrary lxc.conf directive injection via NVIDIA instance configuration
- Severity
- 8.7high CVSS:3.1 by canonical
- Exploit likelihood
- 0.47% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| LXD | from 5.0.0 before 5.0.8, from 5.21.0 before 5.21.6, from 4.0.0 before 4.0.12 | CVE List |
| canonical lxd | from 4.0.0 before 4.0.12, from 5.0.0 before 5.0.8, from 5.1 before 5.21.6, from 6.0 up to 6.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de neutralización inadecuada de elementos especiales en el manejo de la configuración de instancias NVIDIA de LXD permite a un atacante autenticado inyectar directivas de configuración arbitrarias. Al proporcionar caracteres de nueva línea dentro de los valores de configuración ’nvidia.driver.capabilities’ o ’nvidia.require.*’, un atacante puede manipular el archivo lxc.conf generado. Esta falla permite al atacante ejecutar código arbitrario en el sistema anfitrión con los privilegios del demonio LXD.
References
| https://github.com/canonical/lxd/security/advisories/GHSA-vfh7-q59q-54v2 | exploit, mitigation, vdb-entry, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63298 changed 2026-08-13 | CVE Terms of Use |
| NVD | CVE-2026-63298 changed 2026-10-24 | Public domain |