---
title: "GHSA-47w9-6r3f-938g: LXD has restricted project bypass leading to arbitrary command execution"
url: https://erroneo.us/security/ghsa/GHSA-47w9-6r3f-938g/
description: "GHSA-47w9-6r3f-938g (critical, Go): LXD has restricted project bypass leading to arbitrary command execution. Reported from…"
type: advisory
section: "Security Digest"
date_published: 2026-11-06
date_modified: 2026-11-06
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-47w9-6r3f-938g"
license: All rights reserved. Quote with attribution and a link.
---

# GHSA-47w9-6r3f-938g: LXD has restricted project bypass leading to arbitrary command execution

## Affected packages

- Go `github.com/canonical/lxd` < 0.0.0-20260630083100-c5184be310b1 → fixed: 0.0.0-20260630083100-c5184be310b1

## Details

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 Impact - Bypass of project restrictions. - Arbitrary command execution on the Incus server.

## Sources

- [GitHub Advisory GHSA-47w9-6r3f-938g](https://github.com/advisories/GHSA-47w9-6r3f-938g)
- [github.com](https://github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g)
- [github.com](https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv)
- [nvd.nist.gov](https://nvd.nist.gov/vuln/detail/CVE-2026-48751)
- [github.com](https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49)
- [github.com](https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b)
- [github.com](https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe)
- [github.com](https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19)
- [github.com](https://github.com/canonical/lxd/releases/tag/lxd-5.0.7)
- [github.com](https://github.com/canonical/lxd/releases/tag/lxd-5.21.5)

---
Source page: https://erroneo.us/security/ghsa/GHSA-47w9-6r3f-938g/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
