Arbitrary file read+write on host via templates/ symlink in malicious image (Canonical LXD)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.47 % · percentile 40 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- canonical
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N | canonical |
| CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N | NVD · security@ubuntu.com (Secondary) |
European references
- ENISA EUVD · EUVD-2026-57547
- GCVE · GCVE-0-2026-16033
Affected configurations (NVD CPE)
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*≥ 4.0.0 < 4.0.12cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*≥ 5.0.0 < 5.0.7
Affected products
| Product | Versions |
|---|---|
| Canonical · LXD | affected 4.0.0 < 4.0.12 ; affected 5.0.0 < 5.0.8 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |