What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Canonical LXD 4.0.12, 5.0.7. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-16033 or the next vulnerability affects your stack