CVE-2026-115843 in LXD
Summary
by MITRE • 11/27/2026
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.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in LXD versions prior to 4.0.16, 5.0.12, 5.21.10, and 6.10.2 represents a critical failure in input validation during the migration process for custom storage volumes. This flaw is classified under CWE-28, which describes Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal or directory traversal. The core technical issue arises from how LXD handles snapshot names provided by a peer node during live migration operations. When an authenticated client, who is restricted to operating within a single project and typically lacks direct root access on the host system, initiates a migration of a custom storage volume, the daemon accepts snapshot identifiers supplied by the remote peer without performing adequate sanitization or validation checks against path traversal sequences such as dot-dot-slash patterns.
By exploiting this lack of validation, an attacker can manipulate these snapshot names to construct arbitrary filesystem paths that extend beyond the intended container boundaries and into sensitive areas of the host operating system's file hierarchy. Because LXD operations are executed with root privileges on the host machine, successfully injecting files through these crafted paths results in the creation or modification of files at any location accessible by the root user. This effectively bypasses the security isolation mechanisms designed to contain containers within their designated projects and storage pools. The attacker gains the ability to write arbitrary content to critical system directories, potentially overwriting configuration files, installing malicious binaries, or establishing persistence mechanisms that survive container restarts or removals.
The operational impact of this vulnerability is severe, as it leads directly to root-level code execution on the host infrastructure. Beyond file creation and modification, the flaw also permits recursive deletion of attacker-chosen paths if the specific migration parameters allow for snapshot cleanup operations involving these maliciously crafted names. This capability can lead to significant denial-of-service conditions by destroying essential system files or data volumes, thereby compromising the availability and integrity of the underlying host environment. The ability to delete arbitrary directories as root exacerbates the risk profile, turning a potential privilege escalation into a catastrophic infrastructure compromise event that affects all tenants sharing the same LXD daemon instance.
To mitigate this vulnerability, organizations must immediately upgrade their LXD installations to version 4.0.16 or later for the 4.x branch, version 5.0.12 or later for the 5.0 series, version 5.21.10 or later for the 5.21 series, and version 6.10.2 or later for the 6.10 series. These releases contain patches that enforce strict validation of snapshot names during migration processes to ensure they conform to expected naming conventions and do not contain path traversal characters. Additionally, administrators should review their network security policies to restrict LXD daemon access to trusted networks only, ensuring that untrusted or potentially compromised nodes cannot initiate migrations against the host. Implementing principle of least privilege for API tokens used by clients further reduces the attack surface by limiting which operations authenticated users can perform, although this specific vulnerability requires authentication and project-level access rather than full root privileges on the client side.
From a threat intelligence perspective, this flaw aligns with ATT&CK technique T1059 Command and Scripting Interpreter if an attacker uses it to execute scripts via injected files, or more directly with T1486 Data Encrypted for Impact if used in conjunction with ransomware deployment after gaining root access. It also relates to T1078 Valid Accounts as the initial vector requires valid authentication credentials within a restricted project context. Security teams should monitor logs for unusual migration activities involving custom storage volumes and inspect file system integrity on hosts running vulnerable LXD versions to detect any signs of unauthorized file modifications or deletions that may indicate exploitation attempts have already occurred.