{
  "id": "CVE-2026-34178",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-34178",
  "published_at": "2026-04-09T09:18:58.404Z",
  "title": "Importing a crafted backup leads to project restriction bypass",
  "vendor": "Canonical",
  "product": "lxd",
  "cvss": {
    "score": 9.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In Canonical LXD before 6.8, the backup import path validates project restrictions against backup/index.yaml in the supplied tar archive but creates the instance from backup/container/backup.yaml, a separate file in the same archive that is never checked against project restrictions. An authenticated remote attacker with instance-creation permission in a restricted project can craft a backup archive where backup.yaml carries restricted settings such as security.privileged=true or raw.lxc directives, bypassing all project restriction enforcement and allowing full host compromise.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Canonical",
        "product": "lxd",
        "ranges": [
          "\u003e= 4.12.0, \u003c 5.0.7",
          "\u003e= 5.1.0, \u003c 5.21.5",
          "\u003e= 6.0.0, \u003c 6.8.0"
        ],
        "fixed_in": [
          "5.0.7",
          "5.21.5",
          "6.8.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade lxd to 5.0.7 or 5.21.5 or 6.8.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/canonical/lxd/security/advisories/GHSA-q96j-3fmm-7fv4"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/canonical/lxd/pull/17921"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
