Skip to main content

Canonical LXD CVE-2026-135373

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
    Obtain confined LXD project access or lxd-user account
  2. Delivery
    Craft device path with '..' or QCOW2 backing-file reference
  3. Exploit
    Resolve/open path on host as root
  4. Execution
    Mount host files or write setuid-root binary
  5. Impact
    Gain root on host and read Ceph/RBD data

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 client confined to an LXD project with restricted=true, OR an unprivileged local user reaching LXD via lxd-user. Concrete trigger paths per the advisory: (1) a disk, unix-char/unix-block, or TPM device whose path contains '..' components, which LXD resolves against the host before entering the container root; (2) for virtual machines, a QCOW2 root disk in a user-supplied image referencing a backing file or external data file that QEMU (running as root) then opens on the host, reachable when publishing an instance or exposing it over NBD; (3) a directory shared to a VM from a restricted source path when raw.idmap is unset by the user; (4) a custom volume named like an external Ceph source attached with a pool; (5) a UEFI vars file name taken from a link inside the instance volume; and (6) projects using restricted.idmap.uid/gid (as created by incus/lxd-user) accepting a raw.idmap entry mapping the user's own host ID onto container root. LIMITING factors: the attacker must already have project access or a local lxd-user account (no pre-auth remote path). Vendor workarounds reduce most device vectors - set restricted.devices.disk=block, restricted.devices.unix-char=block, restricted.devices.unix-block=block, restricted.virtual-machines.lowlevel=block (default), leave restricted.devices.disk.paths empty, and remove restricted.idmap.* ranges - but TPM devices cannot be blocked by a project restriction, and user-supplied VM images remain a vector unless VMs are denied with limits.virtual-machines=0. Updating to the fixed versions is the only complete fix.

Impact

This is a genuine privilege-escalation and container-escape issue, but its real-world urgency is moderate rather than critical. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) shows a network-reachable, low-complexity attack requiring low privileges - specifically an authenticated user with access to an LXD project, including an unprivileged local user routed through lxd-user. The impact modeling is the key nuance: vulnerable-system impacts are scored None (VC:N/VI:N/VA:N) while subsequent-system impacts are High (SC:H/SI:H/SA:H), correctly reflecting that confidentiality, integrity and availability of the LXD project itself are not the loss - the loss is full compromise of the HOST (root on the host, arbitrary host file read/write, and access to Ceph RBD images). That host impact is what makes this serious despite the modest 6.5 base score. On the demand side the signals are muted: there is no CISA KEV listing (not actively exploited), no public exploit identified, and the vuln.today decision label is 'this_month' rather than act_now/emergency. No EPSS score was provided. In short, the signals are consistent - a real, high-impact escape gated behind authenticated project access, with no evidence of exploitation yet - placing it as a priority patch (this month) rather than an emergency drop-everything event. Note the vulnerability requires the attacker to already hold project access or a local lxd-user account, which materially narrows the exposed population versus a pre-auth remote flaw.

Exploit ScenarioDerived

An attacker who already holds access to a confined LXD project - or an unprivileged local user able to reach LXD through lxd-user - attaches a disk, unix, or TPM device using a path containing '..' components, or publishes/exposes a VM whose QCOW2 disk references a host backing file. Because the device path is resolved on the host before the container root filesystem is entered (and QEMU tools run as root), the attacker mounts host directories, reads or modifies arbitrary host files, or plants setuid-root files, escalating to root on the host. No public exploit identified at time of analysis; the only reference is the Canonical/Incus security advisory, so weaponization effort is unverified.

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's device path resolution and VM disk format detection lets an authenticated user confined to a restricted project - including an unprivileged local user reaching the daemon through lxd-user - break out of container isolation and obtain root on the host. The flaw covers several distinct vectors: disk, unix-char/unix-block and TPM device paths containing '..' components that are resolved against the host before entering the container root filesystem; QCOW2 root disks in user-supplied VM images whose backing file or external data file references are opened by QEMU running as root when an instance is published or exposed over NBD; and restricted.idmap.uid/gid projects accepting a raw.idmap entry that maps the user's own host ID onto container root. Successful exploitation yields host file read/write and host root, or access to Ceph RBD images reachable with the host's credentials; no public exploit code was identified at time of analysis, and the vendor states that upgrading is the only complete fix.

RemediationAI

Vendor-released patch: upgrade to LXD 4.0.16, 5.0.12, 5.21.10 or 6.10.2 depending on your branch - the vendor states that updating is the only complete fix, and the source package data records the same four fixed versions. Where upgrading must be staged, the advisory's documented workaround removes most device-related vectors but is explicitly partial: set restricted.devices.disk=block, restricted.devices.unix-char=block and restricted.devices.unix-block=block, keep restricted.virtual-machines.lowlevel=block (the default), leave restricted.devices.disk.paths empty, and remove all restricted.idmap.* ranges from affected projects. The trade-offs are real - blocking disk devices removes legitimate disk passthrough for those projects, and dropping idmap ranges breaks the uid/gid mapping that lxd-user style projects rely on. Two gaps remain under those settings: TPM devices cannot be blocked by a project restriction at all, and user-supplied virtual machine images stay a vector unless virtual machines are denied outright with limits.virtual-machines=0, which disables VM workloads for the project entirely. Audit existing restricted projects for device paths containing '..', for custom volumes named to resemble external Ceph sources, and for any raw.idmap entries in projects that also set restricted.idmap.uid/gid. Full details and the version matrix are at https://github.com/canonical/lxd/security/advisories/GHSA-4q9m-c399-26hg.

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 class is CWE-22 (improper limitation of a pathname to a restricted directory), but in LXD the traversal is not a single input-validation miss - it is a set of trust-boundary failures between a project-confined client and code that runs as host root. Container device paths were accepted with '..' components and resolved against the host filesystem before the container's root was entered, so the resulting mount landed outside the container. For virtual machines, disk format was guessed from disk content when publishing an instance or exposing it over NBD, and a QCOW2 image could point at a host backing file or external data file that the QEMU tooling then opened as root; a directory shared to a VM from a restricted source path was only protected from the guest's root user while raw.idmap was set, and the user can unset it. Two further variants round out the set: a custom volume named like an external Ceph source was treated as one when attached with a pool, and the UEFI variables file name was taken from a link inside the instance volume. Separately, projects using restricted.idmap.uid and restricted.idmap.gid (the configuration lxd-user creates) accepted a raw.idmap entry mapping the invoking user's own host ID onto the container's root user. The project-restriction model - restricted=true plus restricted.devices.* and restricted.idmap.* - is the intended containment boundary, and each vector is a case where that boundary was crossed. The vendor advisory is a copy of the Incus advisory GHSA-4375-qwr5-8vjj, so the same class of issue affects both daemons. Severity is scored modestly (CVSS 4.0 base 6.5) because the vulnerable system itself is rated no confidentiality, integrity or availability impact while the subsequent system is rated high on all three; an independent CVSS 3.1 assessment with scope change lands at AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.

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) exploits via the network-reachable LXD API (AV:N/AC:L); the escape crosses from project to host (S:C) yielding host root, so C/I/A:H.

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 container device path resolution and VM disk format detection in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project access, including an unprivileged local user through lxd-user, to read and modify arbitrary host files or Ceph RBD images and gain root privileges on the host via crafted device paths or QCOW2 backing file references.

Threat Intelligence Overview

EPSS Score
0.5%
Top 65% exploitable
Prevalence
Medium
LXD is a popular Canonical container/VM manager, common in Ubuntu server fleets but 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

32
Low Medium High Critical
KEV: 0
EPSS: 0
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