{"id":"CVE-2026-140085","summary":"lxd: Uncontrolled search path element in run-host HOME handling allows local privilege escalation to root","details":"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.","aliases":["GHSA-mm7v-2mcg-5fjg"],"modified":"2026-12-01T23:00:12.234436690Z","published":"2026-12-01T21:01:57.201Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140085.json","cna_assigner":"canonical","cwe_ids":["CWE-427"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140085.json"},{"type":"PACKAGE","url":"https://github.com/canonical/lxd"},{"type":"ADVISORY","url":"https://github.com/canonical/lxd/security/advisories/GHSA-mm7v-2mcg-5fjg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140085"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/canonical/lxd","events":[{"introduced":"3c94d4fae7ff57e0ee79850135a277f53a18753c"},{"fixed":"c068355d4c7cb85956403e748265ecd055c8a068"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"6.10"},{"fixed":"6.10.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["lxd-6.10.1","lxd-6.10.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140085.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}