CVE-2026-140085 PUBLISHED

lxd: Uncontrolled search path element in run-host HOME handling allows local privilege escalation to root

Assigner: canonical
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 7.3

Product Status

Vendor Canonical
Product LXD
Versions Default: unaffected
  • affected from 6.10 to 6.10.2 (excl.)

Credits

  • lto7777777 reporter

References

Problem Types

  • CWE-427 Uncontrolled Search Path Element CWE