GHSA-47w9-6r3f-938g: LXD has restricted project bypass leading to arbitrary command execution
Published 2026-11-06 · Updated 2026-11-23 · Also known as GO-2026-6932
Summary
LXD contains a restricted project bypass vulnerability where instance snapshots ignore low-level blocking configurations, allowing arbitrary command execution on the server. Engineering and security teams managing LXD instances should review the advisory and apply remediation.
Who is affected
The vulnerability affects deployments utilizing restricted projects, specifically when attackers abuse low-level hooks such as raw.lxc and raw.qemu via instance snapshots. By moving a maliciously crafted snapshot into a restricted project and restoring it, a low-privileged actor can achieve arbitrary command execution on the host server with root privileges.
Exploitability
The vulnerability has a CVSS score of 9.9 (CRITICAL) with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, indicating it is network-accessible, requires low privileges, requires no user interaction, and has a scope change with high impacts on confidentiality, integrity, and availability. EPSS is not yet available, and CISA Known Exploited Vulnerabilities indicates no active exploitation.
Remediation
- Update github.com/canonical/lxd to version 0.0.0-20260630083100-c5184be310b1 or later.
How to check your project
- Check the go.mod or dependency manifest for github.com/canonical/lxd to see if the version falls within the vulnerable range prior to 0.0.0-20260630083100-c5184be310b1.
Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/canonical/lxd |
>= 0, < 0.0.0-20260630083100-c5184be310b1 | 0.0.0-20260630083100-c5184be310b1 | go get github.com/canonical/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Changed |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes the vulnerability in LXD?
Instance snapshots ignore the restricted.containers.lowlevel=block setting, allowing low-level hooks like raw.lxc and raw.qemu to be abused.
What level of access is required to exploit this issue?
Low privileges are required to initiate the attack through restricted project manipulation and snapshot restoration.
What is the impact of a successful exploitation?
An attacker can bypass project restrictions and achieve arbitrary command execution on the host server with root privileges.
Original advisory description
References
- WEB https://github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g
- WEB https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-48751
- WEB https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49
- WEB https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b
- WEB https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe
- WEB https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19
- PACKAGE https://github.com/canonical/lxd
- WEB https://github.com/canonical/lxd/releases/tag/lxd-5.0.7
- WEB https://github.com/canonical/lxd/releases/tag/lxd-5.21.5
Source records: GHSA-47w9-6r3f-938g, GO-2026-6932 (OSV.dev).