CVE-2026-115843

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

Published Nov 26, 2026 CVSS 4.0 · 6.5 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In LXD versions prior to 4.0.16, 5.0.12, 5.21.10, and 6.10.2, the snapshot names supplied during a storage volume push migration are not validated, allowing a client with project authorization to construct arbitrary host file paths. This flaw, a result of unchecked input and pathname manipulation (CWE‑20 and CWE‑22), lets the client create or delete files on the host as the root user, effectively granting root‑level code execution and full filesystem control.

Affected Systems

This vulnerability affects Canonical’s LXD containers running any of the following versions: 4.0.0 through 4.0.15, 5.0.0 through 5.0.11, 5.21.0 through 5.21.9, and 6.10.0 through 6.10.1. Systems using these LXD binaries are at risk; any host running a LXD daemon that permits custom volume migration without proper validation is affected.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity, and the lack of an EPSS value means current exploit probability is unknown, yet the vulnerability is listed outside CISA’s KEV catalog. The attack requires a trusted client authenticated to the specific project where the LXD daemon performs the migration, but once a malicious snapshot name is provided, the LXD server will write files or delete paths with root privileges. A successful exploitation can lead to arbitrary code execution on the host, making the risk high in practice despite the moderate metric.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Canonical LXD to at least version 4.0.16 (for 4.0 series), 5.0.12, 5.21.10, or 6.10.2, or any later release that includes the path‑validation fix.
  • Restrict migration operations to trusted administrators and remove the ability for regular project users to perform custom volume pushes whenever possible.
  • If an upgrade is not immediately feasible, disable the custom storage volume push feature or prevent unvalidated snapshot names by blocking migration peers that are not explicitly trusted.

Generated by OpenCVE AI on November 27, 2026 at 00:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title lxd: Arbitrary host file write and delete as root via unvalidated snapshot names in custom volume push migration
Weaknesses CWE-20
CWE-22
References
Metrics cvssV4_0

{'score': 6.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}

Subscriptions

No data.

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Nov 26, 2026, 11:16 PM
Reserved
Oct 23, 2026, 5:20 PM
Status
Deferred
Published
Nov 27, 2026, 12:16 AM
Modified
Nov 27, 2026, 12:16 AM