Skip to main content

Canonical LXD CVE-2026-135382

MEDIUM
Path Traversal (CWE-22)
2026-11-26 canonical
6.5
CVSS 4.0 · Vendor: canonical
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to confined LXD project
  2. Delivery
    Create custom volume or storage bucket
  3. Exploit
    Plant symlink / crafted path or win unpack race
  4. Execution
    LXD root process follows attacker path
  5. Persist
    Read or write arbitrary host files as root
  6. Impact
    Full 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (canonical) PRIMARY 6.5 MEDIUM
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
vuln.today AI 9.9 CRITICAL

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

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

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Medium
Canonical LXD is a common container/VM manager in Ubuntu and cloud fleets, not universal
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*

More in Lxd

View all
CVE-2025-54286 HIGH POC
7.5 Oct 02

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

CVE-2025-54289 HIGH POC
7.4 Oct 02

Privilege escalation in Canonical LXD's operations API (LXD before 6.5 and LXD 5.21 before 5.21.4) allows an authenticat

CVE-2025-54293 HIGH POC
7.1 Oct 02

Authenticated remote attackers with access to the Canonical LXD instance log retrieval or deletion endpoints can read ar

CVE-2025-54287 HIGH POC
7.1 Oct 02

Server-side template injection in Canonical LXD's instance snapshot naming feature lets an authenticated user who can mo

CVE-2026-112816 CRITICAL
10.0 Oct 30

Improper certificate validation in the HTTPS API listener of Canonical LXD lets an unauthenticated remote attacker prese

CVE-2025-54290 MEDIUM POC
6.9 Oct 02

Unauthenticated project enumeration in Canonical LXD 5.21.x before 5.21.4 and 6.x before 6.5 lets remote attackers deter

CVE-2025-54291 MEDIUM POC
6.9 Oct 02

Unauthenticated remote attackers can confirm the existence of LXD projects on Canonical LXD by comparing HTTP status cod

CVE-2026-63294 CRITICAL
9.9 Aug 12

Privilege escalation to host root in Canonical LXD occurs when the container manager unpacks crafted image or backup arc

CVE-2026-66897 CRITICAL
9.9 Aug 24

Host root code execution in Canonical LXD arises from a path-traversal flaw in instance template processing, letting an

CVE-2026-63293 CRITICAL
9.9 Aug 12

Arbitrary host file read and write in Canonical LXD occurs because the image import/unpack routine does not verify wheth

CVE-2026-63298 CRITICAL
9.9 Aug 12

Canonical LXD's NVIDIA GPU passthrough configuration handler fails to sanitize newline characters in user-supplied `nvid

CVE-2026-66898 CRITICAL
9.9 Aug 12

Path traversal in Canonical's LXD container and VM manager allows a user with backup import/restore privileges to write

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy