Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
PR:L confirmed since LXD API access is required; S:C reflects host filesystem impact beyond the container/VM boundary; I:L for file creation without confirmed arbitrary modification.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
Lifecycle Timeline
3DescriptionCVE.org
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.
AnalysisAI
Path traversal in Canonical LXD's image metadata template processing enables an authenticated low-privilege attacker to read arbitrary host files or create files in arbitrary host filesystem locations. The flaw resides in the virtual machine/QEMU driver execution path, where LXD fails to sanitize template file paths from escaping the designated instance templates directory. Exploitation crosses the container/VM boundary to the host (scope change, S:C), making this high-severity in environments where host isolation is a security assumption. No public exploit code or CISA KEV listing has been identified at time of analysis.
Technical ContextAI
LXD (cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*) is Canonical's system container and virtual machine manager, using LXC for containers and QEMU for VM workloads. This vulnerability manifests in the image metadata template processing pipeline - specifically the VM/QEMU driver code path - where image archives can include template files that LXD materializes on the host filesystem during instance initialization. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) is the root cause: LXD fails to validate or canonicalize template paths against the designated instance templates root directory, allowing sequences such as '../../' to resolve outside the intended boundary. Because templates are processed with host-level filesystem access in the QEMU driver path, successful traversal operates on the host rather than the container filesystem. The wildcard CPE ('*') indicates all released LXD versions are affected, with no version ceiling confirmed from the available data.
RemediationAI
Consult the Canonical security advisory at https://github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh for the confirmed patched release - no exact fix version was provided in the available intelligence data, so a specific target upgrade version cannot be independently confirmed here. As a compensating control, restrict who can create LXD instances from untrusted or externally sourced image archives - specifically limit the LXD API 'image.create' and instance launch operations to fully trusted administrators only, removing low-privilege user access to image ingestion. If VM workloads are not required, temporarily disabling the QEMU driver and restricting instance types to containers may reduce the exploitable surface until a patch is applied. Note that this mitigation has an operational trade-off: it prevents VM-type instance creation entirely. Network-level restriction of the LXD API socket (typically Unix socket or HTTPS on port 8443) to authorized subnets or hosts reduces remote exploitation surface but does not eliminate the vulnerability for authorized low-privilege users.
Cross-Site Request Forgery (CSRF) in LXD-UI in Canonical LXD versions >= 5.0 on Linux allows an attacker to create and s
Privilege Escalation in operations API in Canonical LXD <6.5 on multiple platforms allows attacker with read permissions
Information Spoofing in devLXD Server in Canonical LXD versions 4.0 and above on Linux container platforms allows attack
Path Traversal in the log file retrieval function in Canonical LXD 5.0 LTS on Linux allows authenticated remote attacker
A arbitrary file access vulnerability (CVSS 6.5) that allows an attacker with instance configuration permissions. Risk
Privilege escalation to host root in Canonical LXD occurs when the container manager unpacks crafted image or backup arc
Host root code execution in Canonical LXD arises from a path-traversal flaw in instance template processing, letting an
Arbitrary host file read and write in Canonical LXD occurs because the image import/unpack routine does not verify wheth
Canonical LXD's NVIDIA GPU passthrough configuration handler fails to sanitize newline characters in user-supplied `nvid
Path traversal in Canonical's LXD container and VM manager allows a user with backup import/restore privileges to write
Authorization bypass in Canonical LXD (6.0 before 6.10, 5.21.x before 5.21.6, 5.0.x before 5.0.8) lets an authenticated
Project-confinement bypass in Canonical LXD lets an authenticated user holding can_create_instances on a restricted proj
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: ImportantShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-57547