← Terug naar overzicht

A critical path traversal vulnerability exists in LXD's instance template processing engine. Attackers with container edit permissions, or any user launching a crafted image, can overwrite arbitrary files on the host system as root. The flaw lies in a discrepancy between path validation (using a confined os.Root directory handle) and file creation (using os.Create with an unconfined string path) when processing target template paths defined in metadata.yaml. This mismatch allows an attacker to escape directory confinement, overwrite root-owned host files, and ultimately achieve host root code execution. The vulnerability represents a container escape scenario with full host compromise potential. It is tracked as CVE-2026-66897 and has been disclosed via GitHub Security Advisories for the canonical/lxd repository.

Affected products

  • Canonical LXD
  • LXD

Related CVE's

  • CVE-2026-66897

Categories

  • Cloud & Virtualization
  • Operating Systems
  • Zero-Day Vulnerabilities