CVE-2026-122225: lxd: Symbolic link following in imported VM backup config drives
Symbolic link following in imported VM backup config drive preparation in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project-scoped permissions to disclose sensitive host files, including LXD server and cluster keys, and overwrite host files as root via importing and starting a VM backup with a symlinked config directory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 4.0.16 - Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 5.0.12 - Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 5.21.10 - Upgrade
Upgrade
canonical/lxdto a version that resolves this vulnerability.Fixed in 6.10.2
Event History
Frequently Asked Questions
Which LXD deployments are affected?
Affected releases are Canonical LXD before 4.0.16, 5.0.12, 5.21.10, and 6.10.2. The issue applies when VM backups can be imported and started.
What access does an attacker need?
An attacker must be authenticated to LXD and have project-scoped permissions. They exploit the issue by importing and starting a VM backup whose config directory contains symbolic links.
What is the potential impact?
The attacker can disclose sensitive host files, including LXD server and cluster keys. They may also overwrite host files with root privileges.
What can be done if upgrading is not immediately possible?
The provided information identifies importing and starting a VM backup with a symlinked config directory as the exploitation path. Restrict project-scoped users from performing those operations until an affected LXD release is updated.