CVE-2026-66897 json
Instance template path traversal allows arbitrary host file write as root
published 2mo ago modified 18d ago also EUVD-2026-64757 , GHSA-q39m-8fx9-42fv
Unreviewed: the maintainers' own advisory
Published by the maintainers on their GitHub repository canonical/lxd. GitHub has not reviewed it into the GitHub Advisory Database, so the affected packages and versions are the maintainers' word. Read the full advisory on GitHub.
- cvss
- 9.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Canonical LXD 4.0.13, 5.0.9, 5.21.7, 6.10
Is CVE-2026-66897 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2mo ago
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-11).
Exploits and checks
- github.com https://github.com/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected products
- Canonical LXD
Classification
References
-
github.com
/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv
vdb-entry, vendor-advisory, exploit, advisory
Sources
- CVE List CVE-2026-66897
- NVD CVE-2026-66897
- Maintainer advisory GHSA-q39m-8fx9-42fv
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
The maintainers of canonical/lxd published their own advisory on GitHub. Reviewed sources take precedence over it.