CVE-2026-115843: lxd: Arbitrary host file write and delete as root via unvalidated snapshot names in custom volume push migration
In LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2, an improper limitation of a pathname to a restricted directory vulnerability allows an authenticated client restricted to a single project to write and delete files at arbitrary host filesystem paths as root.
When a custom storage volume is pushed to a LXD daemon, the snapshot names supplied by the migration peer are never validated and are used to build the filesystem path of each received snapshot. This allows an attacker to place attacker-controlled files into any host directory as root, gaining root-level code execution on the host, and to recursively delete an attacker-chosen path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
LXDto a version that resolves this vulnerability.Fixed in 4.0.16 - Upgrade
Upgrade
LXDto a version that resolves this vulnerability.Fixed in 5.0.12 - Upgrade
Upgrade
LXDto a version that resolves this vulnerability.Fixed in 5.21.10 - Upgrade
Upgrade
LXDto a version that resolves this vulnerability.Fixed in 6.10.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated LXD client that is restricted to a single project can exploit it. The vulnerable operation is pushing a custom storage volume to the LXD daemon.
What access and conditions are required for exploitation?
The attacker needs authenticated access to a vulnerable LXD daemon and must be able to act as the migration peer for a custom storage volume push. They supply crafted snapshot names that are used without validation when the daemon constructs snapshot filesystem paths.
What is the potential impact on the host?
An attacker can write attacker-controlled files to arbitrary host filesystem locations as root and recursively delete an attacker-chosen path. This can result in root-level code execution on the host.
Which LXD releases are affected?
LXD versions before 4.0.16, 5.0.12, 5.21.10, and 6.10.2 are affected.