CVE-2026-66897: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Canonical LXD
Description
CVE-2026-66897 is a critical path traversal vulnerability in Canonical's LXD container management software. It allows an attacker with container edit permissions or a user launching a crafted image to overwrite arbitrary files on the host system as root. The flaw arises from a mismatch between path validation and file creation during instance template processing, enabling escape from directory confinement and host root code execution.
CVSS v3.1
Score 9.9critical
Affected software
Canonical
LXD
pkg:github/LXDRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in LXD occurs during processing of target template paths specified in metadata.yaml. LXD validates the path against a confined os.Root directory handle but then opens and creates the file using os.Create with an unconfined string path. This discrepancy allows an attacker to bypass directory confinement, overwrite root-owned files on the host, and execute code as root on the host system. The vulnerability affects multiple versions of LXD including 4.0.0, 5.0.0, 5.21.0, 6.0, and all versions prior to 4.0.13, 5.0.9, 5.21.7, and 6.10 respectively. The CVSS v3.1 base score is 9.9, indicating critical severity with network attack vector, low attack complexity, requiring low privileges but no user interaction, and impacts confidentiality, integrity, and availability with scope change.
Potential Impact
Successful exploitation allows an attacker with container edit permissions or the ability to launch a crafted image to overwrite arbitrary files on the host system with root privileges. This leads to full host compromise including root code execution, complete loss of confidentiality, integrity, and availability of the host system.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, restrict container edit permissions to trusted users only and avoid launching untrusted images. Monitor vendor communications for updates on remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-07-28T07:41:26.310Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a8c10e2acd9273b49506afb
Added to database: 08/24/2026, 09:37:38 UTC
Last enriched: 09/10/2026, 12:22:26 UTC
Last updated: 10/08/2026, 18:48:47 UTC
Views: 200
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.