Skip to main content

Canonical LXD CVE-2026-127153

MEDIUM
Path Traversal (CWE-22)
2026-11-26 canonical
5.3
CVSS 4.0 · Vendor: canonical
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to LXD with restricted-project rights
  2. Delivery
    Admin-enabled proxy/GPU devices permitted
  3. Exploit
    Add device with path-traversal name
  4. Execution
    LXD resolves path outside instance dir as root
  5. Impact
    Overwrite/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.

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

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

Alert me

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

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

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).

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:H

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
High
Subsequent system: Availability
High

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

EPSS Score
0.5%
Top 66% exploitable
Prevalence
Medium
LXD common in Ubuntu/Canonical container hosting, not universally deployed
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.5%
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

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