Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as VM editor in restricted project
-
DeliveryInject raw.apparmor and raw.qemu.conf rules
-
ExploitBridge LXD Unix socket into guest VM
-
ExecutionEscape VM and escalate to LXD administrator
-
ImpactGain host root access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Canonical LXD 4.12–6.7 with restricted.virtual-machines.lowlevel=block project restriction enabled. Attacker requires can_edit permission on a VM instance. No user interaction needed. Exploitation bypasses incomplete denylist to inject raw.apparmor and raw.qemu.conf, escalating to LXD admin and host root. |
| Impact | CVSS 9.1 reflects critical severity with network accessibility and high impact across confidentiality, integrity, and availability. However, authentication requirement (PR:H) and patch availability significantly reduce real-world blast radius. Risk concentrates on multi-tenant LXD deployments where untrusted users hold can_edit VM permissions. Organizations on affected versions (4.12-6.7) face privilege escalation to host root via denylist bypass. |
| Exploit ScenarioDerived | Authenticated attacker with can_edit VM permissions injects raw.apparmor and raw.qemu.conf directives to bridge LXD Unix socket into guest, escalating to cluster administrator then host root. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
Privilege escalation in Canonical LXD 4.12-6.7 allows authenticated remote attackers with VM instance editing rights to bypass project restrictions via incomplete denylist validation. Attackers inject AppArmor rules and QEMU chardev configurations through unblocked raw.apparmor and raw.qemu.conf keys, bridging the LXD Unix socket into guest VMs. Successful exploitation enables escalation to LXD cluster administrator and subsequently to host root access. No public exploit identified at time of analysis. Authenticated remote exploitation (PR:H) with cross-scope impact on confidentiality, integrity, and availability.
RemediationAI
Vendor-released patch: Upgrade to Canonical LXD version 6.8 or later, which implements complete denylist validation blocking raw.apparmor and raw.qemu.conf keys in restricted projects. Apply upstream fix available via GitHub pull request https://github.com/canonical/lxd/pull/17909. Review project restriction configurations and audit can_edit permission grants on VM instances in restricted projects. As interim mitigation, revoke can_edit permissions from non-administrative users in projects enforcing restricted.virtual-machines.lowlevel=block until patching completes. Consult vendor security advisory https://github.com/canonical/lxd/security/advisories/GHSA-fm2x-c5qw-4h6f for deployment-specific guidance and validation procedures.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-184 incomplete denylist vulnerability in isVMLowLevelOptionForbidden function (lxd/project/limits/permissions.go) fails to block raw.apparmor and raw.qemu.conf keys under restricted.virtual-machines.lowlevel=block project restriction. Attackers leverage omitted validation to inject QEMU chardev configurations exposing the LXD management socket to guest VM environments, enabling unauthorized privileged operations.
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
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
Lifecycle Timeline
2DescriptionCVE.org
Canonical LXD versions 4.12 through 6.7 contain an incomplete denylist in isVMLowLevelOptionForbidden (lxd/project/limits/permissions.go), which omits raw.apparmor and raw.qemu.conf from the set of keys blocked under the restricted.virtual-machines.lowlevel=block project restriction. A remote attacker with can_edit permission on a VM instance in a restricted project can inject an AppArmor rule and a QEMU chardev configuration that bridges the LXD Unix socket into the guest VM, enabling privilege escalation to LXD cluster administrator and subsequently to host root.
Executive ViewAI
CVE-2026-34177 is a critical privilege escalation vulnerability in Canonical LXD versions 4.12-6.7 that allows authenticated users with VM editing permissions to escape project isolation and gain cluster administrator access, ultimately compromising host root security. Organizations running multi-tenant LXD clusters face immediate risk of data breach, service disruption, and unauthorized system access from internal or compromised VM operators.
Apply vendor patch. Until patching: (1) Revoke raw.apparmor and raw.qemu.conf editing capabilities from non-administrative users via LXD profile restrictions; (2) Implement network-level access controls limiting LXD Unix socket exposure; (3) Enable comprehensive audit logging of all configuration changes; (4) Enforce approval workflows for any VM instance modifications in multi-tenant environments.
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
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Related Vulnerabilities in Canonical LXD Security Bypass
View all 3Cross-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
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
Improper certificate validation in the HTTPS API listener of Canonical LXD lets an unauthenticated remote attacker prese
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
EUVD-2026-20872
GHSA-fm2x-c5qw-4h6f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB