CVE-2026-16033
JSON

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 packageVersionsReported by
LXDfrom 4.0.0 before 4.0.12, from 5.0.0 before 5.0.8CVE List
canonical lxdfrom 4.0.0 before 4.0.12, from 5.0.0 before 5.0.7NVD

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2026-16033 changed 2026-08-13CVE Terms of Use
NVDCVE-2026-16033 changed 2026-10-23Public domain