CVE-2026-66898Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE
Description
A path traversal vulnerability in LXD allows an attacker to manipulate file system paths during backup import and restore operations. When importing or restoring a backup archive, LXD fails to validate instance and storage volume names contained within the archive metadata. An attacker can exploit this flaw by supplying a crafted backup archive with malicious instance or volume names containing path traversal sequences, potentially allowing file access or overwriting outside the designated restore directory.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
- https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984 vdb-entryvendor-advisoryVendor AdvisoryExploit
CPE matches (NVD) (4)
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*≥ 4.0.0 < 4.0.12cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*≥ 5.0.0 < 5.0.4cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*≥ 5.1 < 5.21.2cpe:2.3:a:canonical:lxd:6.0:*:*:*:*:*:*:*