Canonical LXD
CVE-2026-135382
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to confined LXD project
-
DeliveryCreate custom volume or storage bucket
-
ExploitPlant symlink / crafted path or win unpack race
-
ExecutionLXD root process follows attacker path
-
PersistRead or write arbitrary host files as root
-
ImpactFull host and instance compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated LXD user with access to at least one project, explicitly INCLUDING a project with restricted=true, per the advisory. The easiest variants need only the ability to create a custom storage volume or a storage bucket; other variants require the client to win a retryable race against an unpack operation, or to have the server pull from an image server or migrate to a peer the client controls. Specific vulnerable code paths: instance/custom-volume/bucket backup export, image publishing, image fingerprint and delta-base name handling, cross-content-type volume access (file/SFTP on block volumes, NBD on filesystem volumes), and migration snapshot name handling. LIMITING FACTORS: valid authenticated project access is mandatory (not internet-anonymous); there is NO complete workaround - setting restricted.devices.disk=block, restricted.backups=block and removing storage-bucket/custom-volume access from untrusted projects reduces but does not eliminate exposure (image-related issues remain), and only granting access to fully trusted users fully avoids it. Oversized metadata in an image or backup can additionally exhaust daemon memory (DoS). |
| Impact | This is a genuine high-impact issue whose raw CVSS 4.0 base score of 6.5 understates the real danger: the vendor-supplied vector (AV:N/AC:L/AT:N/PR:L/UI:N) with VC/VI/VA:N but SC:H/SI:H/SA:H models the container/project as the vulnerable system and the host as a HIGH-impact subsequent system, i.e. a scope-crossing compromise. Canonical's own advisory states a client with access to a single project - even a restricted=true project - can read and write arbitrary host files as root, yielding full compromise of the host and every instance on it. The attacker must be authenticated (PR:L), which bounds exposure to users who already hold some LXD project access, so this is primarily a tenant-escape / privilege-boundary failure rather than an internet-wide unauthenticated RCE. Exploitation signals are mixed-but-low on the opportunistic axis: no CISA KEV listing and no EPSS score are provided, and the only reference is Canonical's GHSA advisory rather than working exploit code, so there is no evidence of widespread automated exploitation. However, the priority Decision label is 'this_month' and the mechanism is well-documented in the advisory, meaning capable adversaries in multi-tenant LXD deployments could develop exploits. Net: a real priority for any multi-tenant or untrusted-project LXD environment, lower urgency where all project users are already trusted. |
| Exploit ScenarioDerived | An authenticated user confined to a single restricted LXD project creates a custom storage volume or storage bucket, then triggers a backup, image-publish, or migration operation whose path walk follows an attacker-planted symlink or unvalidated path component while running as root on the host. This lets them read sensitive host files (keys, credentials) or, via the unpack race conditions, write arbitrary root-owned files to escape the project and take over the host and all co-located instances. No public working exploit was identified at time of analysis; only Canonical's advisory describing the flaw is available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Path traversal in Canonical LXD before 4.0.16, 5.0.12, 5.21.10 and 6.10.2 allows an authenticated user with access to even a single project - including a project marked restricted=true - to read and write arbitrary host files as root and to exhaust daemon memory with oversized image or backup metadata. The lowest-bar variants need only the ability to create a custom storage volume or a storage bucket, while others require winning a retryable race against an unpack, or having the server pull from an image server or migrate to a peer the attacker controls. No public exploit code was identified at time of analysis; because the flaw yields root-level host file access whenever project access is granted, exposure is governed almost entirely by how widely LXD project access is handed out.
RemediationAI
Upgrade to the fixed release for your branch: 4.0.16, 5.0.12, 5.21.10 or 6.10.2, as documented in the Canonical advisory at https://github.com/canonical/lxd/security/advisories/GHSA-p9wc-rm6w-fg66 (mirrored from the Incus advisory GHSA-42x8-664j-84w8). The vendor is explicit that there is no complete workaround: only granting project access to fully trusted users avoids the issues. Where that is not immediately possible, the exposure can be reduced - but not eliminated - by setting restricted.devices.disk=block and restricted.backups=block and by removing access to storage buckets and custom volumes from untrusted projects, with the trade-off that these settings break legitimate disk-device, backup, bucket and custom-volume workflows for those projects and, per the vendor, still leave the image-related issues uncovered. Because exploitation requires a valid authenticated project user, tightening who holds project access and auditing existing restricted projects for unnecessary bucket and custom-volume permissions are the most effective interim controls while the upgrade is scheduled.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-22 (improper limitation of a pathname to a restricted directory), but the interesting detail is where it occurs: several LXD code paths that move data in or out of storage volumes treat client-controlled content as trusted while the daemon runs as root on the host. Instance backups, custom volume backups and image publishing walked the volume by host path, so a directory swapped for a symbolic link during the walk was followed. Custom volumes could be reached through an endpoint intended for the other content type (file and SFTP access against a block volume, NBD access against a filesystem volume) or refreshed from a volume of the other type, leaving a disk image path under the client's control; the bucket backup export endpoint built a path from the backup name without verifying the backup exists. Image handling repeated the pattern: the fingerprint and the delta base name supplied by a remote image server were used as file names before validation, and a custom volume being imported or an instance being rebuilt, renamed or created could be accessed while its content was still being unpacked. Finally a migration target could request snapshots the source never offered, with those names used as path components on the source, and several small files taken from images and backups were read without any size limit. The CPE cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* covers the affected range beginning at 4.0. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H, base 6.5) treats the project/container as the vulnerable system with no direct impact and the host as a high-impact subsequent system; the independent assessment restates the same practical outcome as CVSS 3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, since reading and writing host files as root leads to compromise of the host and of every instance on it.
Know when Lxd gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Authenticated project user (PR:L) remotely (AV:N) escapes project confinement to act as host root, so scope changes (S:C) with high C/I/A on the host; AC:L because the simplest variants need only volume/bucket creation.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
DescriptionCVE.org
Path traversal in backup, image, storage volume, and migration handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to read and write arbitrary host files as root and exhaust daemon memory via crafted symlinks, unvalidated path components, or oversized metadata.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
Cross-site request forgery in the LXD-UI component of Canonical LXD 5.0 before 5.0.5, 5.1 before 5.21.4, and 6.0 before
Privilege escalation in Canonical LXD's operations API (LXD before 6.5 and LXD 5.21 before 5.21.4) allows an authenticat
Authenticated remote attackers with access to the Canonical LXD instance log retrieval or deletion endpoints can read ar
Server-side template injection in Canonical LXD's instance snapshot naming feature lets an authenticated user who can mo
Improper certificate validation in the HTTPS API listener of Canonical LXD lets an unauthenticated remote attacker prese
Unauthenticated project enumeration in Canonical LXD 5.21.x before 5.21.4 and 6.x before 6.5 lets remote attackers deter
Unauthenticated remote attackers can confirm the existence of LXD projects on Canonical LXD by comparing HTTP status cod
Privilege escalation to host root in Canonical LXD occurs when the container manager unpacks crafted image or backup arc
Host root code execution in Canonical LXD arises from a path-traversal flaw in instance template processing, letting an
Arbitrary host file read and write in Canonical LXD occurs because the image import/unpack routine does not verify wheth
Canonical LXD's NVIDIA GPU passthrough configuration handler fails to sanitize newline characters in user-supplied `nvid
Path traversal in Canonical's LXD container and VM manager allows a user with backup import/restore privileges to write
NVD
CVE.org
EPSS
GitHub
Exploit-DB