CVE-2026-66897
published critical CVSS 3.1 · 9.9Instance template path traversal allows arbitrary host file write as root
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Canonical | — | LXD4.0.0 to < 4.0.13 · 5.0.0 to < 5.0.9 · 5.21.0 to < 5.21.7 · 6.0 to < 6.10 · Other versions: unaffected · Platforms: Linux | Affected | Not stated | canonical |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- canonical · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Canonical | LXD | 4.0.0 to < 4.0.13 (affected · semver)5.0.0 to < 5.0.9 (affected · semver)5.21.0 to < 5.21.7 (affected · semver)6.0 to < 6.10 (affected · semver)Default: unaffected | canonical · cna |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-23 CWE-23: Relative Path Traversal
References
1Provider assertions
2canonical · cna
Instance template path traversal allows arbitrary host file write as root
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 564973fed74dbfd88a380c72ca2fc55953c4d4ca08a6e68ddbc2a67dc26b6aab
- Ingested
- 23 Sep 2026, 09:26:54 UTC
- Source record
- Official CVE record