Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.7
Fix Suggestion:
Update to version lxd-5.21.7
https://github.com/canonical/lxd.git (GITHUB):
Affected version(s) >=lxd-5.0.0 <lxd-5.0.9
Fix Suggestion:
Update to version lxd-5.0.9
https://github.com/canonical/lxd.git (GITHUB):
Affected version(s) >=lxd-4.0.0 <lxd-4.0.13
Fix Suggestion:
Update to version lxd-4.0.13
Do you need more information?
Contact Us
CVSS 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)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Relative Path Traversal
EPSS
Base Score:
0.67