PatchSiren cyber security CVE debrief
CVE-2026-66897 Canonical CVE debrief
A critical path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions or launching a crafted image to overwrite arbitrary host files as root, achieving host root code execution. This issue arises from LXD's validation of target template paths in metadata.yaml against a confined directory handle, but subsequent file creation using an unconfined string path. The discrepancy enables directory confinement escape and root-owned host file overwrites.
- Vendor
- Canonical
- Product
- LXD
- CVSS
- CRITICAL 9.9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-24
- Original CVE updated
- 2026-09-11
- Advisory published
- 2026-08-24
- Advisory updated
- 2026-09-11
Who should care
System administrators and security teams responsible for LXD deployments, especially those using versions prior to 4.0.13, 5.0.9, 5.21.7, and 6.9, should assess their exposure and implement necessary mitigations or patches.
Why it matters
CVE-2026-66897 is a critical path traversal vulnerability in LXD that allows attackers to overwrite host files as root and potentially achieve host root code execution. This vulnerability requires immediate attention from system administrators and security teams responsible for LXD deployments, especially those using affected versions. The vulnerability's critical severity and potential for host compromise necessitate prompt assessment and remediation.
- Potential for host root code execution through exploitation of the path traversal vulnerability.
- Ability for attackers to overwrite arbitrary host files as root, leading to potential system compromise.
- Need for immediate assessment and remediation due to critical severity and potential for host compromise.
- Requirement for validation of user input for template paths to prevent directory confinement escape.
Technical summary
The vulnerability is caused by a discrepancy in LXD's handling of instance template paths. While LXD validates these paths against a confined os.Root directory handle, it subsequently creates files using os.Create with an unconfined string path. This allows an attacker with container edit permissions or launching a crafted image to escape directory confinement and overwrite arbitrary host files as root, potentially achieving host root code execution.
Defensive priority
High priority for immediate assessment and remediation due to critical severity and potential for host compromise.
Recommended defensive actions
- Immediately assess LXD deployments for exposure, focusing on versions prior to 4.0.13, 5.0.9, 5.21.7, and 6.9.
- Restrict container edit permissions and validate user input for template paths.
- Implement compensating controls such as monitoring for suspicious file modifications on the host system.
- Apply vendor-provided patches or updates as soon as available.
- Review relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
Evidence notes
The vulnerability details are based on the official CVE Program record and NIST NVD vulnerability detail. The CVE description indicates a critical severity with a CVSS score of 9.9. Affected versions of LXD include those prior to 4.0.13, 5.0.9, 5.21.7, and 6.9.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-66897 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-66897
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-66897 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-66897
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv
[email protected] - Vendor Advisory, Exploit
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.