A path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions, or any user launching a crafted image, to overwrite arbitrary files on the host system as root. When processing target template paths specified in metadata.yaml, LXD validates the path against a confined os.Root directory handle but subsequently opens and creates the file using os.Create with an unconfined string path. This discrepancy between path resolution checks and file creation allows an attacker to escape directory confinement, overwrite root-owned host files, and achieve host root code execution.
Linux distributions: vendors such as Red Hat, Debian, Ubuntu and SUSE often backport security fixes into older package versions. Check your distribution's own advisory rather than comparing upstream version numbers.
Built only from official records (NVD, the CVE List and CISA). No AI. Always confirm applicability for your exact version and platform in the vendor advisory. NVD record last modified 24 Oct 2026, 16:10 UTC · checked by StraitOfVuln 02 Dec 2026, 20:21 UTC.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H · Attack vector: Network| https://github.com/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv | Vendor AdvisoryExploit |
A short explanation of who is affected, the impact and what to do, written only from this record's data.
AI isn't configured on this server (set AI_PROVIDER and an API key).
Add the affected products to your watchlist and get an e-mail when new CVEs list your versions.
+ Canonical Lxd