8.5High

CVE-2026-16033Arbitrary file read+write on host via templates/ symlink in malicious image

Canonical LXD Published: (2 months ago)

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.

Weakness (CWE): CWE-22

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Canonical LXD 4.0.0 – < 4.0.12, 5.0.0 – < 5.0.8

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* ≥ 4.0.0 < 4.0.12
  • cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* ≥ 5.0.0 < 5.0.7