CVE-2026-66897
Last modified
CVE-2026-66897 is a critical-severity vulnerability rated 9.9/10 on the CVSS scale. 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. EPSS estimates a 0.62% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Canonical | Lxd | < 4.0.13 |
| Canonical | Lxd | >= 5.0.0, < 5.0.9 |
| Canonical | Lxd | >= 5.1, < 5.21.7 |
| Canonical | Lxd | >= 6.0, <= 6.9 |
References
- https://github.com/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fvVendor Advisory, Exploit
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-66897?
How severe is CVE-2026-66897?
How do I fix CVE-2026-66897?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-66883Improper Handling of Case Sensitivity vulnerability in Erlan…6.3
- CVE-2026-66884Cross-Site Request Forgery vulnerability in Erlang Ecosystem…2.1
- CVE-2026-66885Cross-Site Request Forgery (CSRF) vulnerability in livebook-…6.5
- CVE-2026-66887The affected products are missing authorization on state-cha…9.6
- CVE-2026-6689Mattermost versions 11.6.x <= 11.6.1, 11.5.x <= 11.5.4, 10.1…4.3
- CVE-2026-66890The affected products use hard-coded credentials, which coul…9.6
- CVE-2026-66898A path traversal vulnerability in LXD allows an attacker to …9.9
- CVE-2026-6690The LifePress plugin for WordPress is vulnerable to Stored C…7.2
- CVE-2026-66901Google::Auth versions before 0.09 for Perl allow server side…7.5
- CVE-2026-66902Google::Auth versions before 0.06 for Perl run a command nam…9.8
- CVE-2026-66906Relative path traversal vulnerability in Apache Camel Azure …9.1
- CVE-2026-66907Relative path traversal vulnerability in Apache Camel Google…7.5
Are you affected by CVE-2026-66897?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
