CVE-2026-63298
CRITICAL
CVSS 9.9
lxd
Verified Advisory
Newline injection in LXD NVIDIA instance configuration handling (CVE-2026-63298)
LXD's `nvidia.driver.capabilities` instance configuration key uses the `validate.IsAny` validator, which accepts any input without filtering, allowing newline characters to pass through unsanitized into the generated `lxc.conf` file. An authenticated attacker with permission to set instance configuration can inject arbitrary LXC directives - including `lxc.hook.pre-start` - which execute as root on the host when the container starts. This is an independent bypass of CVE-2026-23953, which added newline filtering only for `environment.*` keys and left `nvidia.driver.capabilities` unaddressed.
Affected versions:
- >= 4.0, <= 6.9
We recommend updating to: 4.0.12, 5.0.8, 5.21.6.
CVSS 9.9 · our assessment: act_now
Reference: https://github.com/canonical/lxd/security/advisories/GHSA-vfh7-q59q-54v2
Details: https://vuln.today/cve/CVE-2026-63298
Verified by vuln.today against published advisories.
Affected versions
- – >= 4.0, <= 6.9
Fixed in: 4.0.12; 5.0.8; 5.21.6
More advisories for lxd
- CVE-2026-66898 – Path traversal in LXD backup tarball restore enabling root file write / RCE (CVE-2026-66898)
- CVE-2026-63294 – Symlink following vulnerability enabling root RCE in LXD (CVE-2026-63294)
- CVE-2026-63293 – Symlink following arbitrary file read/write in LXD (CVE-2026-63293)
- CVE-2026-63299 – Authorization bypass of project disk limits in LXD storage volumes (CVE-2026-63299)
- CVE-2026-63296 – Authorization bypass via instance migration config override in LXD (CVE-2026-63296)
- CVE-2026-63297 – Authorization bypass via TOCTOU in LXD cross-project instance copy (CVE-2026-63297)
- CVE-2026-62420 – Authorization bypass in LXD cross-project cluster instance migration (CVE-2026-62420)
- CVE-2026-63300 – Security restriction bypass in LXD cross-project instance migration (CVE-2026-63300)