Canonical LXD
CVE-2026-135381
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHold lxd/incus group membership
-
DeliveryCreate container with attacker-owned storage directory
-
ExploitPlant setuid-root binary in container rootfs
-
ExecutionExecute via honored setuid staging mount
-
ImpactGain root on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
|
| Exploitation Conditions | Exploitation is local only and requires one of several concrete preconditions tied to LXD's root-acting helpers. The strongest path requires the attacker to be a member of the lxd/incus group (as incus-user provisions a restricted project) and depends on setuid being honored on the filesystem holding the LXD/Incus directory - they create a container whose storage directory they own, or place a setuid-root file on their own custom volume, then trigger the brief staging mount during container start. The other paths require an administrator or another user to initiate the privileged operation: reading/tampering with volumes depends on an rsync-based transfer (dir, lvm, or cross-driver copy) being started; file-ownership/world-readable abuse and AppArmor-rule injection depend on a proxy device being configured to listen on a unix socket in a directory the attacker can write to. Limiting factors: the attacker cannot self-trigger the transfer/instance-start/proxy paths; the setuid escalations are blocked by mounting the LXD/Incus filesystem with nosuid (at the cost of container setuid support unless idmapped mounts on a separate filesystem are used); and there is no workaround for the transfer-socket issue other than excluding untrusted local users. Complete fix is updating to the fixed versions. |
| Impact | This is a locally exploitable privilege-escalation cluster in Canonical LXD, scored CVSS 4.0 6.3 with vector AV:L/AC:L/AT:N/PR:L/UI:N and subsequent-system impact SC:H/SI:H/SA:H (the vulnerable-system VC/VI/VA are N because the damage lands on the host, modeled as the subsequent system). The signals are internally consistent: local attack vector, low complexity, and low privileges required (membership of the lxd/incus group via incus-user for the strongest path), with no user interaction. No EPSS score, no CISA KEV listing, and no public exploit were provided, and there is no public exploit identified at time of analysis - only the vendor GHSA advisory. The vuln.today decision label is 'this_month' rather than act_now/emergency, which matches a serious-but-not-actively-exploited local flaw. Real priority is driven by exposure model, not mass exploitation: on hosts where untrusted local users hold lxd/incus group membership or where rsync-based transfers (dir, lvm, cross-driver copies) are used, this is a genuine local-root risk; on single-admin hosts with no untrusted local accounts the practical risk is low. Note the vector reports network-independent local access only - the 'unauthenticated abstract Unix socket' phrasing in the description refers to missing peer checks on a local socket, not remote reachability; do not read it as network exploitable. |
| Exploit ScenarioDerived | An attacker with lxd/incus group membership (as incus-user grants for a restricted project) creates a container whose storage directory they own, plants a setuid-root binary inside its root filesystem, and executes it to become root on the host; alternatively they place a setuid-root file on their own custom volume and run it through the staging mount as a container starts. A local user in no Incus group can also read or tamper with any instance/volume mid-rsync-transfer and, during a pool-to-pool copy, plant and run a setuid-root file. No public exploit is identified at time of analysis; exploitation is local and low-complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Local privilege escalation to host root in Canonical LXD (before 4.0.16, 5.0.12, 5.21.10 and 6.10.2) lets unprivileged local users - including a member of the lxd/incus group who, through incus-user, only has access to their own restricted project - become root on the host, read or modify volumes while they are transferred, alter file ownership and modes on the host, and inject rules into AppArmor profiles the daemon loads. The weakness is an incorrect permission assignment (CWE-732) spread across several root-acting helpers rather than one defect: rsync transfer sockets accept the first connection without checking who connected, proxy device unix sockets have owner and mode set by path after creation, the storage directory holding a container takes its owner from whoever supplied the content (migration, image or backup), and a disk source is briefly staged under a path any local user can traverse while setuid bits are still honoured. Scored CVSS 4.0 6.3 (AV:L/AC:L/PR:L, with SC:H/SI:H/SA:H against the host, modelled as the subsequent system); no public exploit code and no CISA KEV entry were identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to LXD 4.0.16, 5.0.12, 5.21.10 or 6.10.2 according to your branch, per the advisory at https://github.com/canonical/lxd/security/advisories/GHSA-fxg7-8r76-78r5; the vendor states that updating is the complete fix. If upgrading is not immediately possible, the advisory's documented mitigations are specific and each has a cost: do not grant untrusted local accounts membership of the lxd (incus) group, since that membership is what makes the setuid-based paths reachable from a restricted incus-user project; avoid proxy devices whose unix sockets live in directories other users can write to, which closes the socket-ownership, world-readable and AppArmor-injection paths but removes the functionality of those devices until they are relocated to a directory only the daemon can write; and mount the filesystem holding the LXD/Incus directory with nosuid, which blocks the setuid escalations but also removes setuid support from containers unless they use idmapped mounts on a separate filesystem. For the transfer-socket issue the vendor offers no workaround other than not having untrusted local users on hosts where rsync-based transfers are used (dir, lvm and cross-driver copies), so isolated upgrades or host re-architecture are the only real options there.
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
Canonical LXD runs a privileged daemon plus helpers that act as root, and the flaw class is CWE-732, incorrect permission assignment for critical resources: the daemon trusts resources whose ownership, path or content a local user can influence. Four concrete surfaces are described in the upstream advisory (copied from the Incus advisory GHSA-p8fx-6xxm-25wh). During an rsync-based instance or volume transfer, the sending side waits on an abstract Unix socket for its own helper and accepts the first connection it receives without verifying peer credentials, so another local process can connect first. Proxy devices that listen on a host Unix socket set that socket's owner and mode by path after creating it, so a path in a directory the attacker can write to permits ownership changes, world-readable permissions, or AppArmor rule injection because the generated profile resolves both socket paths on the host and writes the result in as-is. The directory holding a container on the storage pool is what keeps local users away from setuid files inside its root filesystem, yet its owner could be set by whoever supplied the content through migration, image or backup. Finally, while a container starts or a disk is hot-plugged, the disk source is briefly mounted under a path any local user can traverse with setuid bits still honoured. CPE data identifies the affected package only generically as cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* (all versions before the fixed branches); the upstream package record lists versions >= 4.0 as vulnerable. The strongest escalation path needs membership of the lxd/incus group (as incus-user provisions a restricted project) and depends on setuid being honoured on the filesystem holding the LXD/Incus directory; the volume-tampering, host-permission and AppArmor paths cannot be self-triggered by a user outside the group and instead require an administrator or another user to start a transfer, start an instance, or configure such a proxy device.
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:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Local low-complexity escalation by a low-privileged group member that crosses from container/user context to host root, so AV:L/PR:L/S:C with full host C/I/A impact.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
DescriptionCVE.org
Incorrect permission assignment for critical resources in rsync transfer sockets, instance storage directories, proxy socket paths, and disk staging mounts in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an unprivileged local user to gain root privileges on the host, read or modify transferred volumes, alter host file permissions, and inject AppArmor rules via connecting to unauthenticated abstract Unix sockets, running setuid binaries, or racing path and mount operations.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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