Vulnerability · Published Jun 25, 2026 · Assigned by GitHub_M
CVE-2026-46606Glances: Command Injection via KVM/QEMU VM Domain Names in glances/plugins/vms/engines/virsh.py
High 7.8
In plain English
A high-severity OS command injection in glances from nicolargo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | glances | no fix listed | DEBIAN-CVE-2026-46606 |
| Debian:14 | glances | 4.5.5+dfsg-1 | DEBIAN-CVE-2026-46606 |
| PyPI | glances | 4.5.5 | GHSA-v5r2-qh84-fjx5 |
| PyPI | glances | 4.5.5 | PYSEC-2026-2497 |
| Ubuntu:22.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-46606 |
| Ubuntu:24.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-46606 |
| Ubuntu:25.10 | glances | no fix listed | UBUNTU-CVE-2026-46606 |
| Ubuntu:26.04:LTS | glances | no fix listed | UBUNTU-CVE-2026-46606 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/nicolargo/glances/security/advisories/GHSA-v5r2-qh84-fjx5 x_refsource_CONFIRM
- https://github.com/nicolargo/glances/releases/tag/v4.5.5 x_refsource_MISC