Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-34178 EUVD-2026-20874GHSA-q96j-3fmm-7fv4GO-2026-5576

Importing a crafted backup leads to project restriction bypass

Published Apr 9, 2026 · Updated Apr 9, 2026 · 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.

Affected products

VendorProductAffectedFixed
Canonical lxd 4.12.0 – < 5.0.7, 5.1.0 – < 5.21.5, 6.0.0 – < 6.8.0 5.0.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 incus 6.0.6-3 —
Debian 13 incus 6.0.4-2+deb13u6 —
Debian 13 lxd 5.0.2+git20231211.1364ae4-9+deb13u5 —
Debian 12 lxd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 incus No fix yet —
Ubuntu 25.10 incus No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS incus No fix yet —
Ubuntu Pro 24.04 LTS incus No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/canonical/lxd >= 0.0.0-20210305023314-538ac3df036e, <= 0.0.0-20260226085519-736f34afb267 — GHSA-q96j-3fmm-7fv4
Go github.com/canonical/lxd >= 0.0.0-20210305023314-538ac3df036e — GO-2026-5576

Advisories 2

References