{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "4.12"
              },
              {
                "fixed": "5.0.7"
              },
              {
                "introduced": "5.21.0"
              },
              {
                "fixed": "5.21.5"
              },
              {
                "introduced": "6.0"
              },
              {
                "fixed": "6.9"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "fb8480e2fec971a5edcdfd43c0b861355be90f1d"
            },
            {
              "fixed": "7b1f0b6acefa288398ead8dda48b046d7b2795a3"
            },
            {
              "introduced": "13192d6c1abbfcc9da53ce4c8451abb6da3f5f65"
            },
            {
              "fixed": "28f4061af24739ae06b678c53f155c6c02357c92"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "0dc5080834a2cde19536a849c56931f6acb067f7"
            }
          ],
          "repo": "https://github.com/canonical/lxd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-ppq7-4492-5552"
  ],
  "database_specific": {
    "cna_assigner": "canonical",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9640.json"
  },
  "details": "A privilege escalation vulnerability exists in LXD from 6.0 before 6.9, 5.21.0 before 5.21.5, and 5.0.0 before 5.0.7 regarding the handling of project-restriction policies during snapshot restoration.. An authenticated project operator in a restricted multi-tenant environment can bypass policy restrictions by importing a maliciously crafted instance backup containing restricted configuration keys within a snapshot. When the snapshot is restored, these restricted keys are applied to the live instance without policy validation. Starting the modified instance grants the operator unauthorized host root access.",
  "id": "CVE-2026-9640",
  "modified": "2026-07-09T03:52:33.523154717Z",
  "published": "2026-06-26T15:50:38.453Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9640.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-ppq7-4492-5552"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-9640"
    },
    {
      "type": "FIX",
      "url": "https://github.com/canonical/lxd/pull/18301"
    },
    {
      "type": "FIX",
      "url": "https://github.com/canonical/lxd/pull/18303"
    },
    {
      "type": "FIX",
      "url": "https://github.com/canonical/lxd/pull/18304"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/canonical/lxd"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "LXD Snapshot Import Privilege Escalation Vulnerability"
}