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

Published Dec 1, 2026
·
Updated

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.

Affected Software

1 affected component
Canonical LXD>=6.10<6.10.2

Event History

Dec 1, 2026
CVE Published
via MITRE·09:01 PM
Data Sourced
via MITRE·09:01 PM
DescriptionWeakness
Data Sourced
via OSV·09:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems are exposed to this issue?

Canonical LXD 6.10 releases before 6.10.2 are affected. Exploitation requires a local user on the LXD host and relies on the host's world-writable /tmp directory.

2

What does an attacker need to do to exploit it?

A local user must plant a Python per-user site directory under /tmp. When the LXD daemon next starts, the root-run pro client can import attacker-controlled code because HOME remains set to /tmp/ for the host command.

3

When does the malicious code execute?

Execution occurs at the next LXD daemon start, when the affected root-run client imports the planted Python code. The provided information does not state that code executes immediately after the files are planted.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203