{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "4.12.0"
              },
              {
                "fixed": "5.0.7"
              },
              {
                "introduced": "5.1.0"
              },
              {
                "fixed": "5.21.5"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7b1f0b6acefa288398ead8dda48b046d7b2795a3"
            },
            {
              "fixed": "c5184be310b13a8be5d9a5f286bfa1c0c286716e"
            }
          ],
          "repo": "https://github.com/canonical/lxd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q96j-3fmm-7fv4"
  ],
  "database_specific": {
    "cna_assigner": "canonical",
    "cwe_ids": [
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34178.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "6.0.0"
          },
          {
            "fixed": "6.8.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "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.",
  "id": "CVE-2026-34178",
  "modified": "2026-07-17T03:41:59.044104104Z",
  "published": "2026-04-09T09:18:58.404Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/canonical"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34178.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-q96j-3fmm-7fv4"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34178"
    },
    {
      "type": "FIX",
      "url": "https://github.com/canonical/lxd/pull/17921"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/canonical/lxd"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Importing a crafted backup leads to project restriction bypass"
}