Canonical LXD
CVE-2026-135373
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain confined LXD project access or lxd-user account
-
DeliveryCraft device path with '..' or QCOW2 backing-file reference
-
ExploitResolve/open path on host as root
-
ExecutionMount host files or write setuid-root binary
-
ImpactGain 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. |
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'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
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) 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.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
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
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