Skip to main content

Canonical LXD CVE-2026-135381

MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-11-26 canonical
6.3
CVSS 4.0 · Vendor: canonical
View

Attack ChainAIDerived

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

  1. Access
    Hold lxd/incus group membership
  2. Delivery
    Create container with attacker-owned storage directory
  3. Exploit
    Plant setuid-root binary in container rootfs
  4. Execution
    Execute via honored setuid staging mount
  5. Impact
    Gain 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.

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

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

Alert me

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

Vendor (canonical) PRIMARY 6.3 MEDIUM
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/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
Local
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

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

EPSS Score
0.2%
Top 97% exploitable
Prevalence
Medium
widely used container/VM manager on Ubuntu hosts, not universally deployed
Social Media
1
Sightings
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.2%
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
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

Code Injection CRITICAL

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

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