Skip to main content

Canonical LXD CVE-2026-114454

HIGH
Path Traversal (CWE-22)
2026-11-26 canonical
7.2
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 HTTPS API as restricted project member
  2. Delivery
    Create instance in restricted=true project
  3. Exploit
    Add TPM device with path-traversal name (e.g. t/../../../../../../var/tmp/target)
  4. Execution
    Trigger device removal or instance deletion
  5. Persist
    tpm.Remove() resolves traversal path outside instance directory
  6. Impact
    os.RemoveAll() deletes arbitrary host path as root

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

Exploitation requires a valid LXD project membership - at minimum a restricted client certificate authorized for a single restricted=true project, with no unix socket, no admin privileges, and no access to any other project or the host filesystem. No special LXD configuration beyond the default is required: the advisory confirms that the two independent controls that would otherwise block this (the per-device-type check in lxd/project/limits/permissions.go and the restricted-project device allow-list in lxd/api_project.go) both lack any tpm entry, making the attack reachable from the most locked-down project LXD offers. The malicious device does not need to be started - validateEnvironment() (which requires swtpm) is only invoked from Start(). Exploitation is triggered by either removing the device via an instance update or deleting the instance entirely, both of which invoke tpm.Remove(). Affected versions: LXD 4.8 through 5.0.11, through 5.21.9, and through 6.10.1.

Impact

This vulnerability presents meaningful real-world risk despite the PR:L requirement. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) reflects that only project membership - the minimum privilege LXD offers - is needed, and the advisory confirms this works even against the most locked-down restricted=true project configuration because LXD has no restricted.devices.tpm entry and no per-device-type checks for TPM in permissions.go. The impact is severe: os.RemoveAll() running as root can recursively delete arbitrary host directories outside the LXD instance path. No CISA KEV listing is present, and no EPSS score was provided, so exploitation breadth cannot be quantified from available signals. However, the GHSA advisory includes a fully self-contained proof-of-concept bash script, lowering the barrier for exploitation considerably. The decision label this_week from vuln.today aligns with the realistic risk profile: this is not a drop-everything emergency (no confirmed active exploitation), but the low privilege bar, absence of special conditions in restricted projects, and public PoC in the official advisory make patching urgent. The attack is fully automatable - filepath.Join performs a pure lexical clean, so no race condition, symlink, or TOCTOU is needed.

Exploit ScenarioDerived

A user holding a restricted client certificate scoped to a restricted=true LXD project adds a TPM device whose name contains path traversal sequences (e.g., t/../../../../../../var/tmp/target, which passes IsDeviceName validation because / is an explicitly permitted character). When the attacker subsequently deletes the instance or removes the device via the HTTPS API, tpm.Remove() builds the host path without encoding the name and passes it to os.RemoveAll(), which runs as the LXD daemon (root), recursively deleting the target directory. A self-contained proof-of-concept bash script demonstrating this end-to-end is published in the vendor security advisory GHSA-39g7-pjhx-p454.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Canonical LXD fails to encode the attacker-supplied TPM device name when building the state-file path in tpm.Remove(), so a crafted name such as 't/../../../../var/tmp/x' escapes the instance directory and causes the LXD daemon to run os.RemoveAll() as root against an arbitrary host path. The flaw affects LXD releases from 4.8 through 5.0.11, 5.21.9 and 6.10.1, and is reachable by an authenticated holder of a restricted client certificate limited to a single restricted=true project - no admin rights, unix socket, other project, or write access to the host filesystem is needed, because neither the per-device-type check map nor the restricted-project device allow-list contains a 'tpm' entry. Exploitation only requires removing the device via an instance update or deleting the instance; the device never has to be started, so swtpm does not need to be present. No CISA KEV listing is recorded, but the vendor GHSA advisory includes a public reproduction script (a PoC reference not independently verified here as working exploit code), and the reported CVSS 7.2 reflects high integrity and availability impact on the host.

RemediationAI

Vendor-released patch: upgrade LXD to 5.0.12 (for the 5.0 LTS branch, covering all 4.8-and-later users on that line), 5.21.10, or 6.10.2 as appropriate for your series - these are the fixed versions named in GHSA-39g7-pjhx-p454 (https://github.com/canonical/lxd/security/advisories/GHSA-39g7-pjhx-p454). The available sources do not document a configuration workaround that closes the hole: removing the missing 'tpm' entry gap cannot be done from configuration, and because the bug is reachable from the most locked-down restricted project LXD offers, restricting project membership alone does not prevent exploitation - it only limits who can attempt it, so treat it as a temporary exposure reduction rather than a fix. Audit existing instances for tpm devices whose names contain '/' or '..' segments and delete or rename them from an administrative context before upgrading, since deleting such a device is itself the trigger. After upgrading, confirm the daemon no longer accepts unencoded names on the TPM removal path by reviewing the patched tpm.Remove() implementation against the advisory's call-site list (Start, startContainer, startVM, Stop, Remove).

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 is a system container and VM manager whose daemon runs as root; device names supplied through its REST API are only validated by shared/validate.IsDeviceName, which enforces a 1-63 character length, rejects a leading '.', and explicitly permits forward slashes and dots. Most call sites that convert a device name into a filesystem path run it through filesystem.PathNameEncode() (mapping '/' to '-' and '-' to '--') before joining, as the TPM device's Start() and startContainer()/startVM() paths do. tpm.Remove() in lxd/device/tpm.go is the missed call site: it computes filepath.Join(d.inst.Path(), "tpm."+d.name) directly. Because filepath.Join performs a purely lexical clean, enough '..' segments clamp at '/' and resolve to an absolute attacker-chosen path, which os.RemoveAll() then deletes recursively with the daemon's root privileges - no symlink, race, or TOCTOU is required, and the traversal fires even though the 'tpm.<name>' path never exists on disk. Two controls that would normally contain a restricted-project member are also absent: lxd/project/limits/permissions.go skips device types with no entry in its checks map (there is no 'tpm' entry), and the restricted.devices.* allow-list in lxd/api_project.go covers unix-char, unix-block, unix-hotplug, infiniband, gpu, usb, pci, proxy, nic and disk but not tpm. This is CWE-22 path traversal combined with CWE-863 incorrect authorization; the affected CPE is cpe:2.3:a:canonical:lxd and the Go module range is github.com/canonical/lxd >= 5.0 (and 4.8 onward). An unencoded pid path in Stop() (d.name+".pid") is also noted in the advisory's call-site listing.

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 7.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.6 CRITICAL

Scope changes to host OS outside LXD boundary (S:C); only project membership needed (PR:L); pure lexical path traversal, no complexity (AC:L); no confidentiality impact, only deletion.

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

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

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

DescriptionCVE.org

Path traversal in TPM device management in Canonical LXD from 4.8 before 5.0.12, 5.21.10, 6.10.2 allows a remote authenticated user with project access to recursively delete arbitrary files and directories on the host as root via a crafted device name during instance or device removal.

Technical POC Analysis

CWE-22 path traversal in tpm.Remove() in lxd/device/tpm.go:334-339.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-114454 is a high-severity path traversal vulnerability in Canonical LXD that allows an authenticated user with restricted project access to delete arbitrary files on the host as root. Because the flaw requires only a restricted client certificate limited to a single project, an attacker with basic access could cause significant operational disruption or data loss, potentially affecting all hosted instances and host services. Leadership should prioritize remediation given the risk of destructive host-level actions by low-privileged users.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict restricted project access to trusted users only; monitor for suspicious device removal operations; implement host file integrity monitoring; consider temporarily disabling TPM device support in restricted projects until a patch is available.

Threat Intelligence Overview

EPSS Score
0.7%
Top 51% exploitable
Prevalence
Medium
Canonical container hypervisor, widely deployed on Ubuntu Server
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 HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +36
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