Canonical LXD
CVE-2026-135379
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to restricted LXD project
-
DeliverySupply crafted container image with liblxc config
-
ExploitCreate/start container from that image
-
Executionliblxc loads attacker config file
-
ImpactCommands execute as root on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access 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 LXD user with access to a project - including a project configured restricted=true. Two distinct, independently sufficient paths: (1) the user can create a container from an image it provides; the image (or backup) ships a liblxc configuration file at the top level of the container's storage volume, which liblxc loads at container start, yielding root command execution and bypassing restricted.containers.lowlevel entirely (low complexity, no race needed). (2) The user has edit access to a profile and wins a concurrent rename race during an update to store raw.lxc or other blocked keys (e.g. drop security.idmap.isolated), or triggers a rename during snapshot restore to crash the daemon. Secondary conditions: setting security.syscalls.allow/deny affects the container's seccomp/syscall interception, and setting volatile.<device>.hwaddr lets an instance on a shared bridge write arbitrary entries into the bridge's DHCP host file, affecting addresses handed to other instances. LIMITING factors: no unauthenticated access (PR:L); the race-based variants require winning a timing race (materially harder); per vendor, exploitation of the image path can be prevented by only letting trusted users create containers or restricting untrusted projects to VMs only (limits.containers=0), and the race paths by withholding profile-edit access from untrusted users. There is no workaround for the image issue other than these restrictions; updating to a fixed version is the complete fix. |
| Impact | Signals are mixed and must be weighed against the deployment model. The vendor CVSS 4.0 score is 6.5 (medium), but that number understates the real consequence: the vector sets the vulnerable-system metrics VC/VI/VA to None while the subsequent-system metrics SC/SI/SA are all High, meaning the measured impact is full compromise of the host rather than the container. Scored under CVSS 3.1 with a scope change (S:C, C:H/I:H/A:H) the same facts yield roughly 9.6, so the 'medium' label reflects CVSS 4.0's lower weighting of subsequent-system impact, not a limited consequence. The decisive mitigating factor is PR:L: exploitation requires an authenticated account, specifically a user holding access to a (possibly restricted=true) project, so this is not internet-wide drive-by exploitation - it is a multi-tenant / privilege-boundary escape. The decision label is this_month (not act_now/emergency), KEV status is not listed (not in CISA KEV), and no EPSS score was provided, so exploitation-probability cannot be quantified from the input. No public exploit or PoC reference is present - only the vendor/GHSA advisory. The worst sub-issue (image-supplied liblxc config → root on host) is low-complexity once an image can be supplied; the profile/rename issues are explicitly race-based and therefore harder to land. Net: a genuine priority for anyone running LXD with untrusted or semi-trusted project users, but lower urgency where only trusted operators can create containers or edit profiles. |
| Exploit ScenarioDerived | An authenticated user with access only to a restricted LXD project uploads or imports a container image that ships a liblxc configuration file at the top level of its storage volume; LXD does not create or sanitize that file, so when the container starts, liblxc loads it and runs attacker-chosen commands as root on the host, bypassing restricted.containers.lowlevel. No public exploit code is identified at time of analysis; the attack is low-complexity once image creation is permitted. Alternatively a restricted-project user with profile-edit rights can win a concurrent rename race to smuggle raw.lxc/blocked keys and achieve the same root execution, or crash the daemon via a rename during snapshot restore. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Root command execution on Canonical LXD hosts is possible for an authenticated user with access to a project, including a project configured with restricted=true, by placing a crafted liblxc configuration file in an image or backup at the top level of a container's storage volume; liblxc loads that file when the container starts, bypassing restricted.containers.lowlevel. The same user class can also win rename races during profile or instance updates to inject blocked configuration such as raw.lxc or drop protective settings, crash the daemon during a snapshot restore rename, influence syscall interception through unvalidated security.syscalls.allow/deny entries, and alter DHCP host-file entries on a shared bridge via volatile.<device>.hwaddr. Fixed versions are 4.0.16, 5.0.12, 5.21.10, and 6.10.2; no public exploit identified at time of analysis.
RemediationAI
Upgrade to the fixed release for the deployed branch: 4.0.16, 5.0.12, 5.21.10, or 6.10.2; the vendor advisory at https://github.com/canonical/lxd/security/advisories/GHSA-cqmv-vjc9-5h35 is the primary reference and updating is the complete fix. Where upgrading is not immediately possible, the vendor states there is no workaround for the image-supplied configuration issue other than allowing only trusted users to create containers or restricting untrusted projects to virtual machines by setting limits.containers=0; for the race-based issues, do not give untrusted users edit access to profiles. These restrictions trade away container creation or profile-editing capability for untrusted project users and do not address the underlying flaw.
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 delegates container runtime configuration to liblxc, and the container's storage volume directory is also where liblxc looks for a container configuration file. LXD does not create that file, but images and backups can ship one at the volume top level; liblxc loads it at container start, letting image-supplied configuration run commands as root on the host and bypass project low-level restrictions. The restriction bypass is compounded by project checks that re-look up objects by name and silently pass when the object is absent, so concurrent renames during profile or instance updates can skip checks; instance rewrite after a custom-volume rename or profile update can also write back stale state. CWE-94 captures the code-generation control problem: security.syscalls.allow and security.syscalls.deny are copied without validation into the container's seccomp policy, and volatile.<device>.hwaddr from a restricted project is written without validation into the shared bridge DHCP host file. CPE cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* covers LXD releases before 4.0.16, 5.0.12, 5.21.10, and 6.10.2.
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) remotely creates a container (AV:N, AC:L for the image path) and escapes to run commands as root on the host, a scope change (S:C) with full host C/I/A impact.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
DescriptionCVE.org
Improper control of code generation and project restriction enforcement in container configuration handling in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to execute arbitrary commands as root on the host, crash the daemon, and alter shared bridge DHCP assignments via image-supplied LXC configuration, concurrent rename races during updates, and unvalidated syscall or hardware address settings.
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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