You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Lima: An arbitrary user in a QEMU VM could gain the root privilege in the VM via the guest agent socket
High severity
GitHub Reviewed
Published
Jun 19, 2026
in
lima-vm/lima
•
Updated Aug 14, 2026
On an instance of Lima running with qemu driver, an arbitrary user in the VM could access /run/lima-guestagent.sock when the guest agent is enabled.
This could result in running an arbitrary command with the root privileges in the VM (not on the host), as lima-guestagent.sock provides the tunneling service for an arbitrary address, including a Unix socket address for privileged daemons like D-Bus.
This vulnerability is not exploitable on vz driver, as the guest agent uses vsocks instead of Unix sockets.
Patches
Patched in Lima v2.1.3 (8a45892378d22f40505c31a38f786a07701b6d50)
Note
The default user account in the VM can still run an arbitrary command as the root via the guest agent socket.
This is not a vulnerability, as the user can already run an arbitrary command with sudo by design.
Workarounds
On macOS hosts, use vz driver instead of qemu (limactl create --vm-type=vz. Default since v1.0.)
Or, disable the guest agent (limactl create --plain)
The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
Learn more on MITRE.
Impact
On an instance of Lima running with
qemudriver, an arbitrary user in the VM could access/run/lima-guestagent.sockwhen the guest agent is enabled.This could result in running an arbitrary command with the root privileges in the VM (not on the host), as
lima-guestagent.sockprovides the tunneling service for an arbitrary address, including a Unix socket address for privileged daemons like D-Bus.This vulnerability is not exploitable on
vzdriver, as the guest agent uses vsocks instead of Unix sockets.Patches
Patched in Lima v2.1.3 (8a45892378d22f40505c31a38f786a07701b6d50)
Note
The default user account in the VM can still run an arbitrary command as the root via the guest agent socket.
This is not a vulnerability, as the user can already run an arbitrary command with
sudoby design.Workarounds
vzdriver instead ofqemu(limactl create --vm-type=vz. Default since v1.0.)limactl create --plain)References