# CVE-2026-34178: Importing a crafted backup leads to project restriction bypass

- Severity: Critical 9.1 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T09:18:58.404Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-q96j-3fmm-7fv4, GO-2026-5576
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- lxd: from 4.12.0 before 5.0.7; from 5.1.0 before 5.21.5; from 6.0.0 before 6.8.0
- github.com/canonical/lxd (Go): from 0.0.0-20210305023314-538ac3df036e up to 0.0.0-20260226085519-736f34afb267; from 0.0.0-20210305023314-538ac3df036e
- canonical lxd: from 4.12 up to 5.0.6; from 5.21.0 up to 5.21.4; from 6.0 up to 6.7

## Every score

- canonical: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/canonical/lxd/security/advisories/GHSA-q96j-3fmm-7fv4> (exploit, advisory, third-party-advisory, vdb-entry, vendor-advisory, web)
- <https://github.com/canonical/lxd/pull/17921> (fix, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34178> (advisory)
- <https://github.com/canonical/lxd> (package)

## Sources

- CVE List: [CVE-2026-34178](https://www.cve.org/CVERecord?id=CVE-2026-34178), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-q96j-3fmm-7fv4](https://github.com/advisories/GHSA-q96j-3fmm-7fv4), CC-BY-4.0, modified 2026-08-11
- Go Vulnerability Database: [GO-2026-5576](https://pkg.go.dev/vuln/GO-2026-5576), CC-BY-4.0, modified 2026-08-11
- NVD: [CVE-2026-34178](https://nvd.nist.gov/vuln/detail/CVE-2026-34178), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34178 · Whole record: https://cve.day/CVE-2026-34178.json · Rebuilt by cve.day 2026-11-25T22:59:18.365Z
