Description
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.
Affected products
canonical: lxd
References2
- github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh Vendor AdvisoryExploit
- github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh Vendor AdvisoryExploit
Metrics
- CVSS 3.1
-
8.5
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N - EPSS — exploit probability
- 0% percentile: 41 · as of 12 November 2026
- CWE
- CWE-22
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.