Canonical LXD
CVE-2026-127153
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LXD with restricted-project rights
-
DeliveryAdmin-enabled proxy/GPU devices permitted
-
ExploitAdd device with path-traversal name
-
ExecutionLXD resolves path outside instance dir as root
-
ImpactOverwrite/delete host files or kill host process
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 LXD user with access to a restricted project that an administrator has explicitly set to restricted.devices.proxy=allow or restricted.devices.gpu=allow - both device types are blocked by default (restricted.devices.proxy=block / restricted.devices.gpu=block), which is the primary limiting factor. The user must be able to add a proxy or CDI GPU device and supply a device name containing '/' and '..' traversal sequences, which device-name validation permits on 5.0 and later. The GPU path additionally requires a CDI-capable GPU on the host with a CDI specification present (for example one generated by the NVIDIA Container Toolkit) and affects only 5.21.3+ and 6.2+, whereas the proxy path affects 5.0+. In unrestricted projects this is not a distinct escalation because such users can already gain host root by other means. These gates - authenticated access, the non-default allow setting, a crafted name, and for GPU a specific hardware/toolkit prerequisite - correspond to PR:L and AC:H. |
| Impact | Signals point to a real but conditional, non-urgent issue rather than a mass-exploitation emergency. The vendor CVSS 4.0 base score is 5.3 (medium) with AV:N/AC:H/AT:N/PR:L/UI:N and high integrity and availability impact on the host (SI:H/SA:H): a low-privileged but authenticated LXD user can write, delete and overwrite arbitrary host files as root and terminate arbitrary host processes. The vuln.today decision label is 'this_month', not act_now or emergency, consistent with the gating conditions: AC:H and PR:L mean the attacker must already hold authenticated access to a restricted project that an administrator has explicitly configured to allow proxy or GPU devices (both are blocked by default). This is not in CISA KEV and no EPSS score was provided in the input, so there is no evidence of widespread or automated exploitation - exploitation would be targeted and depends on a non-default deployment. One discrepancy to flag: the description says an attacker can 'read, overwrite, or delete arbitrary host files', implying some confidentiality impact, yet the vendor CVSS 4.0 vector sets VC:N/SC:N (no confidentiality); the advisory notes LXD reads some files back but only applies their content inside the container, so the read primitive appears limited - verify the exact read exposure with Canonical before treating host file disclosure as confirmed. |
| Exploit ScenarioDerived | An authenticated user with rights in a restricted LXD project that an admin has set to allow proxy devices (restricted.devices.proxy=allow) adds a proxy device whose name contains path-traversal sequences (e.g. 'x/../../../../tmp/pwned'); when the device starts and stops, LXD resolves the crafted name to paths outside the instance directory and writes, truncates or deletes those files as root, and can kill a host process named in an attacker-planted PID file. The vendor advisory includes working reproduction commands (lxc config device add/remove) for both the proxy and CDI GPU paths, so a public proof-of-concept reference exists, though it is not packaged as standalone verified exploit code. Attack complexity is rated High because exploitation requires the non-default device-allow configuration and crafted traversal names. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 27, 2026
Path traversal in Canonical LXD's proxy and CDI GPU device-name handling allows an authenticated user working inside a restricted project that has been explicitly set to allow proxy or GPU devices to create, overwrite and delete arbitrary files on the host as root, and to terminate arbitrary host processes by planting a crafted PID file and stopping the device. The affected branches are those before 5.0.12, 5.21.10 and 6.10.2, with the proxy path present from 5.0 and the CDI GPU path from 5.21.3 and 6.2. Exploitation is strongly gated: both device types are blocked by default (restricted.devices.proxy=block, restricted.devices.gpu=block), the attacker must already hold an authenticated LXD account in a project where an administrator relaxed that setting, and the GPU route additionally needs a CDI-capable GPU with a CDI specification on the host; no EPSS score or KEV listing was supplied, and the vendor advisory publishes step-by-step proof-of-concept reproduction commands that are not confirmed as weaponized exploit code.
RemediationAI
Vendor-released patch: LXD 5.0.12, 5.21.10 and 6.10.2, so refresh the snap or rebuild from the corresponding stable branch, following https://github.com/canonical/lxd/security/advisories/GHSA-9p5f-cj8j-2gvw. Because the flaw is only reachable when a restricted project explicitly opts in, the vendor-noted mitigation is to keep restricted.devices.proxy=block and restricted.devices.gpu=block (the defaults) and to re-check any project where an administrator has changed either to allow, removing that permission from untrusted users until the host is upgraded - the trade-off is that legitimate proxy or GPU device usage in those projects stops working. Also audit existing instances and profiles for proxy or GPU device names containing '/' or '..' (the advisory's proof-of-concept uses names of the form x/../../../../../../../tmp/pwned) and review host paths that may already have received proxy.<name>.log, AppArmor forkproxy profiles, proxy.<name> PID files, or *_cdi_config_devices.json / *_cdi_hooks.json artifacts, since a planted PID file can cause an arbitrary host process to be killed on device removal. Hosts without a CDI specification for a GPU are not exposed to the GPU variant but remain exposed through the proxy path.
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
LXD builds filesystem paths by concatenating a user-supplied device name into fixed path templates. For non-NAT proxy devices, start-up creates or truncates <logs>/<instance>/proxy.<name>.log, writes the forkproxy AppArmor profile to <var>/security/apparmor/profiles/lxd_forkproxy-<name>_<instance> and loads it via apparmor_parser, and writes a YAML PID file to <devices>/<instance>/proxy.<name>; on stop LXD reads that PID file, kills the process it names as root and deletes the file. For CDI GPU devices it writes <devices>/<instance>/<name>_cdi_config_devices.json and <name>_cdi_hooks.json, deleting them on stop (gputype=mig uses the same files on 6.x). Device-name validation uses the pattern ^[/.\-:_a-zA-Z0-9]+$ on 5.0 and later, so '/' and '.' are legal in a name and a value such as x/../../../../../../../../tmp/pwned escapes the intended directory; the final path component is fully attacker-chosen. This is a classic CWE-22 improper limitation of a pathname to a restricted directory, rooted in treating a user-controlled name as a safe single path segment rather than normalising and validating it. The forkproxy AppArmor profile was introduced in 2020, so the proxy path exists across stable-4.0, stable-5.0, stable-5.21, stable-6 and main (4.0 will not be evaluated because all authenticated users there are effectively root), while the CDI GPU path is limited to 5.21.3+ and 6.2+. The published CVSS 4.0 vector (5.3) records only subsequent-system impact (SI:H/SA:H) while the independent assessment scores the flaw as CVSS:3.1 S:C with I:H/A:H and L-level confidentiality, and both agree that AC:H and PR:L reflect the configuration and hardware preconditions rather than any timing or race behaviour; the trigger mechanism itself is the crafted device name described above.
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:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:N/SI:H/SA:H
Authenticated low-privileged user (PR:L) in a non-default project that allows these devices (AC:H) escapes the instance to act as root on the host (S:C, I:H/A:H), with only limited file read (C:L).
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
DescriptionCVE.org
Path traversal in proxy and CDI GPU device name handling in Canonical LXD before 5.0.12, 5.21.10, and 6.10.2 allows an authenticated user with access to a restricted project permitting proxy or GPU devices to read, overwrite, or delete arbitrary host files as root and terminate host processes via crafted device names containing path traversal sequences.
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