8.5high
Arbitrary file read+write on host via templates/ symlink in malicious image
- Severity
- 8.5high CVSS:3.1 by canonical
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
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
| Product or package | Versions | Reported by |
|---|---|---|
| LXD | from 4.0.0 before 4.0.12, from 5.0.0 before 5.0.8 | CVE List |
| canonical lxd | from 4.0.0 before 4.0.12, from 5.0.0 before 5.0.7 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de salto de ruta en LXD permite a un atacante lograr la lectura arbitraria de archivos del host o la creación de archivos sin restricciones. Al procesar plantillas de metadatos de imagen, LXD no logra sanear o restringir adecuadamente las rutas de archivo de plantilla para que no escapen del directorio de plantillas de instancia (afectyo específicamente las rutas de ejecución del controlador de máquina virtual / QEMU). Un atacante puede explotar esta falla al proporcionar un archivo de imagen manipulado con directivas de plantilla maliciosas que contienen secuencias de salto de ruta, lo que hace que LXD acceda o escriba archivos fuera del directorio de plantillas previsto en el sistema host.
References
| https://github.com/canonical/lxd/security/advisories/GHSA-9hcm-hxh5-7xxh | exploit, vdb-entry, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-16033 changed 2026-08-13 | CVE Terms of Use |
| NVD | CVE-2026-16033 changed 2026-10-23 | Public domain |