# GHSA-4QMM-CJ9M-MMWR: Restricted projects can inject QEMU configuration through a virtual machine disk device path

- Database: GitHub
- Severity: CVSS 7.4 (High)
- Published: 2026-11-26
- Modified: 2026-11-26

## Tracked as

- [CVE-2026-127160](https://cve.now/CVE-2026-127160.md): Canonical LXD privilege escalation via VM disk QEMU configuration

## Description

### Summary

Reported from https://github.com/lxc/incus/security/advisories/GHSA-r69f-pwfc-cwrr

A virtual machine disk device's guest path is accepted without
restriction and becomes part of a server-generated device pathname,
which is written into the virtual machine's QEMU configuration file as
a quoted value. The configuration format has no escaping, so a path
containing a quote and a line break ends the quoted value early and
adds configuration entries and sections of the client's choosing.

### Details

A client able to create a virtual machine in a restricted project can
add QEMU configuration that Incus never generated, including a control
monitor for the virtual machine's QEMU process, which runs as root.
This bypasses `restricted.virtual-machines.lowlevel`, whose purpose is
to deny exactly this kind of low-level control (`raw.qemu`,
`raw.qemu.conf` and related keys).


### Proof of concept

A client able to create a virtual machine in a restricted project can
add QEMU configuration that Incus never generated, including a control
monitor for the virtual machine's QEMU process, which runs as root.
This bypasses `restricted.virtual-machines.lowlevel`, whose purpose is
to deny exactly this kind of low-level control (`raw.qemu`,
`raw.qemu.conf` and related keys).


### Impact

### Workarounds 

Deny virtual machine creation to untrusted clients, or allow it only in
projects whose users you would trust with `raw.qemu`.
A host-side control monitor reachable through this was demonstrated.
What can be done from it depends on the QEMU build and on the
confinement applied to the QEMU process.

Only projects in which untrusted clients may create virtual machines
are affected. Server administrators can set the low-level keys
directly and gain nothing from this.

## References

- https://github.com/canonical/lxd/security/advisories/GHSA-4qmm-cj9m-mmwr

Page: https://cve.now/GHSA-4QMM-CJ9M-MMWR

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
