CVE-2026-66898
CRITICAL
CVSS 9.9
lxd
Verified Advisory
Path traversal in LXD backup tarball restore enabling root file write / RCE (CVE-2026-66898)
LXD's backup import endpoint (POST /1.0/instances with Content-Type: application/octet-stream) reads the instance name from the tarball's backup/index.yaml verbatim, with no path validation, and uses it as an on-disk path segment before any name check runs. A project user holding the can_create_instances entitlement can supply a crafted archive whose name field contains path traversal sequences (e.g. ../../../../etc/cron.d/x), causing the daemon to create directories and write attacker-controlled file content outside the storage pool as root. Snapshot names within the same archive metadata represent a second identical vector; successful exploitation yields host remote code execution.
Affected versions:
- >= 4.0.0
We recommend updating to: 6.1, 5.21.2, 5.0.4, 4.0.12.
CVSS 9.9 · our assessment: act_now
Reference: https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984
Details: https://vuln.today/cve/CVE-2026-66898
Verified by vuln.today against published advisories.
Affected versions
- – >= 4.0.0
Fixed in: 6.1; 5.21.2; 5.0.4; 4.0.12
More advisories for lxd
- 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-63298 – Newline injection in LXD NVIDIA instance configuration handling (CVE-2026-63298)
- 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)