CVE-2026-66897
Published:August 24, 2026
Updated:September 24, 2026
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.
Affected Packages
https://github.com/canonical/lxd.git (GITHUB):
Affected version(s) >=lxd-5.21.0 <lxd-5.21.7Fix Suggestion:
Update to version lxd-5.21.7https://github.com/canonical/lxd.git (GITHUB):
Affected version(s) >=lxd-5.0.0 <lxd-5.0.9Fix Suggestion:
Update to version lxd-5.0.9https://github.com/canonical/lxd.git (GITHUB):
Affected version(s) >=lxd-4.0.0 <lxd-4.0.13Fix Suggestion:
Update to version lxd-4.0.13Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.4
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
HIGH
Subsequent System Availability
HIGH
CVSS v3
Base Score:
9.9
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.67