Canonical LXD
LXD Snapshot Import Privilege Escalation Vulnerability
A privilege escalation vulnerability exists in LXD from 6.0 before 6.9, 5.21.0 before 5.21.5, and 5.0.0 before 5.0.7 regarding the handling of project-restriction policies during snapshot restoration.. An authenticated project operator in a restricted multi-tenant environment can bypass policy restrictions by importing a maliciously crafted instance backup containing restricted configuration keys within a snapshot. When the snapshot is restored, these restricted keys are applied to the live instance without policy validation. Starting the modified instance grants the operator unauthorized host root access.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.21.0, < 5.21.5
- >= 5.0.0, < 5.0.7
- >= 6.0, < 6.9
Fixed in 5.21.5, 5.0.7, 6.9
Mitigation
Upgrade to LXD version 6.9 or later, 5.21.5 or later, or 5.0.7 or later.
References
- Vendor advisory github.com/canonical/lxd/security/advisories/G…
- Patch github.com/canonical/lxd/pull/18301
- Patch github.com/canonical/lxd/pull/18303
1 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.