Canonical LXD
CVE-2026-114454
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to LXD HTTPS API as restricted project member
-
DeliveryCreate instance in restricted=true project
-
ExploitAdd TPM device with path-traversal name (e.g. t/../../../../../../var/tmp/target)
-
ExecutionTrigger device removal or instance deletion
-
Persisttpm.Remove() resolves traversal path outside instance directory
-
Impactos.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 |
| 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 |
| Exploit ScenarioDerived | A user holding a restricted client certificate scoped to a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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.
Primary rating from Vendor (canonical).
CVSS VectorVendor: canonical
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
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.
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
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