Skip to main content

Canonical LXD EUVDEUVD-2026-140680

| CVE-2026-140085 HIGH
Uncontrolled Search Path Element (CWE-427)
2026-12-01 canonical
7.3
CVSS 4.0 · Vendor: canonical
View

Attack ChainAIDerived

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

  1. Access
    Low-priv local shell on Ubuntu LXD host
  2. Delivery
    Plant malicious uaclient package in /tmp/.local
  3. Exploit
    Wait for next LXD daemon start
  4. Execution
    Root pro imports per-user site directory
  5. Persist
    Python executes injected code as root
  6. Impact
    Arbitrary code execution / full root compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Exploitation Conditions

Requires an Ubuntu host (os-release NAME=Ubuntu) running the affected LXD snap (6/stable 6.10 through 6.10.1), where the snap launcher exports HOME=/tmp/ and the run-host wrapper fails to reset it before nsenter, causing the root-run pro Python client to read a per-user site directory under the host's world-writable /tmp. The attacker needs only a local unprivileged account able to write to /tmp (PR:L), and the payload path must match the system python3 version. Exploitation is LIMITED by: the need for local access (not remotely exploitable); the requirement that the LXD daemon actually restart after planting (AC:H timing dependency); and the fact that a reboot clears /tmp first, so the planted directory must survive until a daemon start that is not preceded by a reboot. It does not apply to hosts whose os-release NAME is not Ubuntu, and it is fixed in 6.10.2.

Impact

This is a genuine local-privilege-escalation-to-root flaw (CVSS 4.0 base 7.3, High) rather than a high-score-but-low-risk issue, but its real-world urgency is moderated by several gating factors. The vector is AV:L (local access required), AC:H, and PR:L, meaning an already-present low-privileged local user - not a remote attacker - is the threat actor. The AC:H and the reporter's own notes reflect a real timing dependency: the root pro client only consults the planted directory at the next LXD daemon start, and a reboot clears world-writable /tmp first, so the attacker must plant and then wait for a daemon restart without an intervening reboot. VC/VI/VA are all High because success yields full root code execution. No EPSS score and no CISA KEV entry were provided in the input, so there is no signal of active or widespread exploitation; a public PoC reference is embedded in the GHSA advisory, but the reporter states they confirmed each link by source reading and did not execute the end-to-end escalation, so it is not verified working exploit code. The vendor-assigned priority is 'this_week' (not act_now/emergency), consistent with a high-impact but access- and timing-gated local flaw. Bottom line: a real priority for any multi-user Ubuntu host running the affected LXD snap, but not an internet-facing or mass-exploitation emergency.

Exploit ScenarioDerived

A low-privileged local user on an Ubuntu host running the LXD snap writes a malicious Python package into /tmp/.local/lib/pythonX.Y/site-packages (shadowing uaclient), which is world-writable because the snap launcher exports HOME=/tmp/ and run-host does not reset it. At the next LXD daemon start the root-run pro (ubuntu-advantage) Python client imports the per-user site directory and executes the attacker's code as root. A public PoC with plant and trigger scripts is included in the GHSA advisory, though the reporter confirmed each link by inspection rather than executing the full chain; given AC:H the attacker must wait for a daemon start that is not preceded by a reboot.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Local privilege escalation to root in the Canonical LXD snap (6/stable, 6.10 through 6.10.1) lets any unprivileged local user on an Ubuntu host plant a Python package under the host's world-writable /tmp and have it imported as root the next time the LXD daemon starts, giving arbitrary code execution with high confidentiality and integrity impact. The root cause is an uncontrolled search path (CWE-427): the snap launcher exports HOME=/tmp/ and the run-host wrapper enters the host mount namespace with nsenter without resetting HOME, so the root-run pro (ubuntu-advantage) client resolves its per-user Python site directory inside host /tmp. Exploitation needs local access and a daemon restart after the payload is planted (CVSS 4.0 base 7.3, High; assessed CVSS 3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H); the upstream advisory ships PoC scripts, but the reporter validated each link through source review and read-only host checks rather than executing the end-to-end escalation, and no confirmed active exploitation is reported in the supplied intelligence.

RemediationAI

Upgrade the LXD snap to 6.10.2 (snap refresh lxd) - this is the vendor-stated fixed version for the 6.10 branch, documented in GHSA-mm7v-2mcg-5fjg, and it closes the 6.10 through 6.10.1 window. Where the snap cannot be refreshed immediately, upstream's suggested code-level fixes are to make run-host set HOME to a root-owned directory or unset it before nsenter, and to export PYTHONNOUSERSITE=1 so host Python tools never consult a per-user site directory; both require patching the snap's run-host wrapper, since no runtime toggle for this behaviour is advertised. Because the trigger is the daemon's own start-up call to pro, restarting the LXD daemon is precisely the event that fires the payload, and the reporter notes a reboot clears /tmp before that start - that shortens the window but is a timing artifact, not a fix. Detection and containment can focus on the PoC's landing path, /tmp/.local/lib/python3.X/site-packages, on Ubuntu hosts running the affected snap, and on auditing any root process that inherits HOME=/tmp/ through the snap launcher.

Affected VersionsENISA

LXD 6.10 <6.10.2

Affected Packages

euvd lxd fix: 6.10.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic CWE-427 uncontrolled search path, but the search path lives in Python rather than in a dynamic loader. In the LXD snap, snap/local/commands/daemon.start exports HOME=/tmp/ for the daemon (a private directory inside the snap) and later links /run/bin/pro to the wrappers/run-host wrapper. run-host deliberately resets PATH and unsets LD_LIBRARY_PATH, PYTHONPATH and PYTHONDONTWRITEBYTECODE, but it leaves HOME untouched before executing the target with nsenter -t 1 -m as root - so inside the host mount namespace HOME points at the host's world-writable /tmp. When lxd/daemon.go calls ubuntupro.New at daemon start on hosts whose os-release NAME is Ubuntu, the client shells out to pro api u.pro.status.is_attached.v1 via shared.RunCommand with a nil environment, inheriting HOME=/tmp/; pro is a setuptools console script with a #!/usr/bin/python3 shebang. CPython 3.12 site.py enables the per-user site directory unless PYTHONNOUSERSITE is set or the real and effective IDs differ, derives it from HOME, and processes its .pth/package contents at interpreter start-up - so a root-owned import of an attacker-controlled directory occurs. The daemon re-executes itself with aa-exec -p unconfined, so no AppArmor profile confines the pro invocation. The same inherited-HOME problem extends to other interpreted host tools reached through run-host, notably the guest-token call and the ceph wrapper when ceph.external=true. The chain was established by source reading of the public tree plus read-only checks on an Ubuntu 24.04.4 host with snap revision 41228; the escalation itself was not executed, so it remains a well-substantiated but not end-to-end demonstrated issue.

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

Local-only attack by an unprivileged user (AV:L, PR:L); AC:H because success depends on a daemon restart with no intervening /tmp-clearing reboot; full root code execution gives C/I/A High.

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

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

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

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 22:03 EUVD
CVE Published
Dec 01, 2026 - 21:01 cve.org
HIGH 7.3

DescriptionCVE.org

Uncontrolled search path element in the run-host command wrapper in Canonical LXD 6.10 before 6.10.2 allows any local user to execute arbitrary code as root via a Python per-user site directory planted under the host's world-writable /tmp, which the root-run pro client imports at the next LXD daemon start because the snap launcher exports HOME=/tmp/ and run-host does not reset it for host commands.

Executive ViewAI

Why It Matters

CVE-2026-140085 is a high-severity local privilege escalation flaw in the Canonical LXD snap (versions 6.10 through 6.10.1) affecting Ubuntu hosts, where any unprivileged local user can achieve root-level code execution. This should concern leadership because a foothold by any low-privileged account-an employee, contractor, or an attacker who has landed on a host-could be escalated to full root control, enabling broad data compromise and system tampering across the estate.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Medium
LXD container manager common on Ubuntu hosts but not universally deployed
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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 N/A
Patch available Yes
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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