Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/canonical/lxd
  4. ›
  5. CVE-2026-34178

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

April 10, 2026

LXD instance backup import validates project restrictions against backup/index.yaml embedded in the tar archive, but creates the actual instance from backup/container/backup.yaml extracted to the storage volume. Because these are separate, independently attacker-controlled files within the same tar archive, an attacker with instance-creation rights in a restricted project can craft a backup where index.yaml contains clean configuration (passing all restriction checks) while backup.yaml contains security.privileged=true, raw.lxc host filesystem mounts, and restricted device types. The instance is created from the unchecked backup.yaml, bypassing all project restriction enforcement.

References

  • github.com/advisories/GHSA-q96j-3fmm-7fv4
  • github.com/canonical/lxd
  • github.com/canonical/lxd/pull/17921
  • github.com/canonical/lxd/security/advisories/GHSA-q96j-3fmm-7fv4
  • nvd.nist.gov/vuln/detail/CVE-2026-34178

Code Behaviors & Features

Detect and mitigate CVE-2026-34178 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.0.0-20210305023314-538ac3df036e up to 0.0.0-20260226085519-736f34afb267

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/github.com/canonical/lxd/CVE-2026-34178.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:58 +0000.