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.
Published: 2026-08-12
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw in LXD enables an attacker to read or create files on the host outside the intended template directory. The vulnerability arises when the system does not sanitize template file paths from malicious image archives, allowing arbitrary file access during the processing of image metadata templates. This could allow read or write access to system files, exposing sensitive data or enabling further compromise. The weakness is classified as CWE‑22.

Affected Systems

The issue affects Canonical’s LXD product. Users running LXD versions earlier than 4.0.12 or 5.0.8 are vulnerable. Upgrading to LXD 4.0.12 (or later) or 5.0.8 (or later) eliminates the flaw.

Risk and Exploitability

The CVSS score of 8.5 indicates high severity, and the EPSS score is currently unavailable. The vulnerability is not listed in CISA’s KEV catalog. Based on the description, it is inferred that the most likely attack vector is a remote attacker supplying a crafted image archive that contains malicious template directives to traverse paths and access host files. Exploitation requires the attacker to upload or provide the vulnerable image to the LXD daemon, which then processes the metadata and writes or reads files on the host.

Generated by OpenCVE AI on August 12, 2026 at 22:13 UTC.

Remediation

Vendor Solution

Upgrade to LXD version 4.0.12 or later, or 5.0.8 or later.


OpenCVE Recommended Actions

  • Upgrade LXD to version 4.0.12 or later, or 5.0.8 or later.
  • Restrict image uploads to trusted administrators only, preventing untrusted images from being processed.
  • Configure LXD to limit template path resolution to a dedicated directory with strict permissions, reducing the ability to escape the intended scope.

Generated by OpenCVE AI on August 12, 2026 at 22:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 12 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Canonical
Canonical lxd
Vendors & Products Canonical
Canonical lxd

Wed, 12 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
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.
Title Arbitrary file read+write on host via templates/ symlink in malicious image
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2026-08-13T12:46:08.117Z

Reserved: 2026-07-17T08:44:31.450Z

Link: CVE-2026-16033

cve-icon Vulnrichment

Updated: 2026-08-13T12:46:03.451Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-12T21:17:35.880

Modified: 2026-08-28T15:24:38.600

Link: CVE-2026-16033

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T22:30:09Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')