← Back to CVE List
Vulnerability Intelligence Report
Instance template path traversal allows arbitrary host file write as root

CVE-2026-66897

A path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions, or any user launching a crafted image, to overwrite arbitrary files on the host system as root. When processing target template paths specified in metadata.yaml, LXD validates the path against a confined os.Root directory handle but subsequently opens and creates the file using os.Create with an unconfined string path. This discrepancy between path resolution checks and file creation allows an attacker to escape directory confinement, overwrite root-owned host files, and achieve host root code execution.

Path Traversal No Active Exploit Signals
CVSS Base Score
9.9
CRITICAL
Exploitability:3.2
Impact Score:6.1
EPSS Probability:0.62%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-22 ↗CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CWE-23 ↗CWE-23: Relative Path Traversal

Affected Products & Versions

Vendor Product Affected Versions
Canonical LXD 4.0.0 < 4.0.13 (affected), 5.0.0 < 5.0.9 (affected), 5.21.0 < 5.21.7 (affected), 6.0 < 6.10 (affected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
0.619%
Vulnerability Class
Path Traversal

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityCanonical Ltd. · Vendor · UK
Reserved2026-07-28T07:41:26
Published2026-08-24T09:08:04
Last Updated2026-08-25T03:55:49

LINK COPIED TO CLIPBOARD