All vulnerabilities

Go

GHSA-47w9-6r3f-938g

LXD has restricted project bypass leading to arbitrary command execution

Severity
Critical 9.9
Published
6 Nov 2026
Last changed
6 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.0.0-20260630083100-c5184be310b1
Weakness
Missing authorization (CWE-862)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Sources
OSV.dev and GitHub

Description

Reported from https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv

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.

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.

  • Bypass of project restrictions.
  • Arbitrary command execution on the Incus server.
From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
github.com/canonical/lxdGo · osv:Go:github.com/canonical/lxd
  • Every version before 0.0.0-20260630083100-c5184be310b1

About github.com/canonical/lxd

References