CVE-2026-66897
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9.9
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS probability
- 0.62%
- CWE
- CWE-22, CWE-23
- Published
- 2026-08-24
- Last modified
- 2026-08-25
Affected products
- Canonical LXD
- Canonical LXD
- Canonical LXD
- Canonical LXD
Weakness type
Related vulnerabilities
- CVE-2026-86775 — knowns before 0.30.0 Path Traversal via Document API
- CVE-2026-86099 — Chainlit through 2.12.0 Path Traversal via socket.io sessionId
- CVE-2026-78485 — Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to...
- CVE-2026-19729 — Keycloak-services: keycloak-services: incomplete fix for arbitrary filesystem path probing via keystore parameters
- CVE-2026-87023 — Tanium addressed a path traversal vulnerability in Comply.
- CVE-2026-87030 — Tanium addressed a path traversal vulnerability in Comply.
- CVE-2026-14505 — Tanium addressed a path traversal vulnerability in Tanium Data Service.
- CVE-2026-53581 — ntp: write path traversal