CRITICAL · CVSS 3.1 9.9 CWE-862

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-24. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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
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.

References

Source records: GHSA-47w9-6r3f-938g, GO-2026-6932 (OSV.dev).