CVE-2026-66897: A path traversal vulnerability in LXD's instance template processing allows an attacker with container edit pe
CVE-2026-66897 is a critical-severity flaw (CVSS 9.9) affecting lxd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 dis
Why this priority
- Critical severity
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-66897?
lxd: upgrade to 4.0.13, 5.0.9, 5.21.7. Exact commands for each OS are on this page.
Is CVE-2026-66897 being exploited?
CVE-2026-66897 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-66897 affect?
CVE-2026-66897 affects lxd. Severity is critical (CVSS 9.9). 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
How urgent is CVE-2026-66897?
Priority 53/100. Critical severity; Public exploit reference
Related CVEs
- CVE-2025-54289 HIGH 8.1 UPGRADE Privilege Escalation in operations API in Canonical LXD <6.5 on multiple platforms allows attacker with read p
- CVE-2026-63294 CRITICAL 9.9 UPGRADE A link following vulnerability in LXD allows an attacker to achieve root command execution on the host system
- CVE-2026-63298 CRITICAL 9.9 UPGRADE An improper neutralization of special elements vulnerability in LXD's NVIDIA instance configuration handling a
- CVE-2026-63293 CRITICAL 9.9 UPGRADE A link following vulnerability in LXD allows an attacker to achieve arbitrary file read and write operations o
- CVE-2026-63299 CRITICAL 9.9 UPGRADE An authorization bypass vulnerability in LXD allows an authenticated user to bypass project-level disk and vol