ZeroHour

CVE-2026-63298

PoC large

Authenticated host RCE in Canonical LXD via NVIDIA config newline injection

CVSS 3.1
9.9 critical
EPSS
<1%p39
Published
()
Modified
AI analysis

Canonical LXD contains an improper neutralization flaw (CWE-78) in how it generates the lxc.conf file for instances configured to use NVIDIA GPUs. An authenticated user who can set instance configuration can embed newline characters in the 'nvidia.driver.capabilities' or 'nvidia.require.*' values, injecting arbitrary configuration directives into the generated file. By controlling those directives, the attacker can execute arbitrary code on the LXD host with the privileges of the LXD daemon (often root), giving control of the host beyond the compromised instance, consistent with the changed scope in the CVSS score. Any LXD deployment that lets untrusted or low-privileged users set NVIDIA-related instance settings is affected; the provided data does not include specific affected or fixed version numbers, which are listed in Canonical's GitHub advisory. Exploitation has not been confirmed in the wild; the flaw has a public advisory reference, is not in CISA KEV, and EPSS estimates only a 0.4% chance of exploitation in the next 30 days.

What to do: Upgrade LXD to the fixed release identified in Canonical's security advisory GHSA-vfh7-q59q-54v2 (version numbers are not included in the provided data). Until patched, restrict which authenticated users can create or modify instances and set nvidia.* configuration keys, and avoid exposing the LXD API to untrusted users. Audit existing 'nvidia.driver.capabilities' and 'nvidia.require.*' values for embedded newline characters and monitor for unexpected commands run by the LXD daemon.

Affected
Canonical LXD
Estimated exposure
large≈10,000–100,000 LXD deployments (order-of-magnitude estimate) — LXD is the standard container manager on Ubuntu Server and is widely used by hosting providers and self-hosters, but practical exposure is limited to deployments whose API is reachable by untrusted authenticated users and that configure…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
canonical
Products
lxd
Weakness
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.