github.com/canonical/lxd · LXD has restricted project bypass leading to arbitrary command execution
Affects github.com/canonical/lxdSource GCVE Database
CVSS 9.9 Critical : upgrade to 0.0.0-20260630083100-c5184be310b1 as a priority.
Data as of 6 Nov 2026, 20:27 UTC
- Patch
- Available – fixed in 0.0.0-20260630083100-c5184be310b1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HWhat to do
Upgrade github.com/canonical/lxd to 0.0.0-20260630083100-c5184be310b1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/canonical/lxd | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in version 0.0.0-20260630083100-c5184be310b1. Users should upgrade to this fixed version to remediate the vulnerability. No other mitigation is indicated or required as the patch fully addresses the issue.
Description
A vulnerability in LXD (Incus) allows bypassing project restrictions that are intended to block low-level container operations. Specifically, instance snapshots ignore the 'restricted.containers.lowlevel=block' setting, enabling attackers to abuse low-level hooks like 'raw.lxc' and 'raw.qemu' to execute arbitrary commands on the host with root privileges. This can be exploited by crafting a malicious snapshot locally and restoring it in a restricted project on a remote server, resulting in full command execution on the Incus server.
References
- github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g (opens in a new tab)
- github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-48751 (opens in a new tab)
- github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49 (opens in a new tab)
- github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b (opens in a new tab)
- github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe (opens in a new tab)
- github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19 (opens in a new tab)
- github.com/canonical/lxd (opens in a new tab)
- github.com/canonical/lxd/releases/tag/lxd-5.0.7 (opens in a new tab)
- github.com/canonical/lxd/releases/tag/lxd-5.21.5 (opens in a new tab)