A path traversal vulnerability in LXD allows an attacker to achieve arbitrary host file read or unconstrained file creation. When processing image metadata templates, LXD fails to properly sanitize or restrict template file paths from escaping the instance templates directory (specifically affecting virtual machine / QEMU driver execution paths). An attacker can exploit this flaw by providing a crafted image archive with malicious template directives containing path traversal sequences, causing LXD to access or write files outside the intended template directory on the host system.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh Vendor Advisory, Exploit
- https://github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh Vendor Advisory, Exploit
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.5 · canonicalNVD modified 2026-10-23 19:10
Affected (CPE criteria) 1
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
References 2
- https://github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh Vendor Advisory, Exploit
- https://github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh Vendor Advisory, Exploit