{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "6.10"
                  },
                  {
                    "fixed": "6.10.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "3c94d4fae7ff57e0ee79850135a277f53a18753c"
            },
            {
              "fixed": "c068355d4c7cb85956403e748265ecd055c8a068"
            }
          ],
          "repo": "https://github.com/canonical/lxd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-mm7v-2mcg-5fjg"
  ],
  "database_specific": {
    "cna_assigner": "canonical",
    "cwe_ids": [
      "CWE-427"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140085.json"
  },
  "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.",
  "id": "CVE-2026-140085",
  "modified": "2026-12-01T22:45:47.376101503Z",
  "published": "2026-12-01T21:01:57.201Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "lxd: Uncontrolled search path element in run-host HOME handling allows local privilege escalation to root"
}