Skip to content
OpenAdvisories
High · 7.8 CVE-2026-46606 EUVD-2026-39516GHSA-v5r2-qh84-fjx5PYSEC-2026-2497

Glances: Command Injection via KVM/QEMU VM Domain Names in glances/plugins/vms/engines/virsh.py

Published Jun 25, 2026 · Updated Jun 25, 2026 · Assigned by GitHub_M

Description

Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.5, the Glances KVM/QEMU monitoring engine (glances/plugins/vms/engines/virsh.py) passes VM domain names, read directly from virsh list --all output, into f-string command templates that are processed by secure_popen(). secure_popen() is explicitly designed to interpret &&, |, and > as shell operators. Because domain names are never sanitised before interpolation, any user with the ability to create or rename a KVM/QEMU virtual machine can execute arbitrary commands as the OS user running Glances — commonly root on hypervisor hosts. This vulnerability is fixed in 4.5.5.

Affected products

VendorProductAffectedFixed
nicolargo glances < 4.5.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glances 4.5.5+dfsg-1 —
Debian 13 glances No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS glances No fix yet —
Ubuntu 25.10 glances No fix yet —
Ubuntu 24.04 LTS glances No fix yet —
Ubuntu 22.04 LTS glances No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS glances No fix yet —
Ubuntu Pro 18.04 LTS glances No fix yet —
Ubuntu Pro 16.04 LTS glances No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Glances 4.5.5-1.1 openSUSE-SU-2026:11122-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI glances < 4.5.5 4.5.5 GHSA-v5r2-qh84-fjx5

Advisories 1

References