lxd: Arbitrary host file write and delete as root via unvalidated snapshot names in custom volume push migration

State
Published
Severity
6.5 Medium
Published
Nov 26, 2026
Updated
Nov 26, 2026
Reserved
Oct 23, 2026

Read the record on cve.org

Description

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.

ProductVersions
LXD Canonical4.0 to before 4.0.16 Affected4.0 to before 5.0.12 Affected4.0 to before 5.21.10 Affected4.0 to before 6.10.2 Affected

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.