An improper validation vulnerability in the instancePostMigration function in lxd/instance_post.go of LXD allows an authenticated attacker with can_create_instances permissions on a restricted project to bypass project-level security restrictions. When migrating an instance between projects, LXD fails to validate the instance's configuration against the target project's enforced restrictions (such as restricted.containers.lowlevel, restricted.devices.*, and restricted.networks.access). An attacker can exploit this by creating a disallowed or high-privilege instance in an unrestricted project and subsequently moving it into the restricted project.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://github.com/canonical/lxd/pull/18605 Exploit, Patch
- https://github.com/canonical/lxd/pull/18651 Patch
- https://github.com/canonical/lxd/security/advisories/GHSA-5g5r-wh97-qcq2 Vendor Advisory, Exploit, Mitigation
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.9 · canonicalNVD modified 2026-10-23 19:10
Affected (CPE criteria) 1
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
References 3
- https://github.com/canonical/lxd/pull/18605 Exploit, Patch
- https://github.com/canonical/lxd/pull/18651 Patch
- https://github.com/canonical/lxd/security/advisories/GHSA-5g5r-wh97-qcq2 Vendor Advisory, Exploit, Mitigation