CVE-2026-46606
Deferred Deferred - Pending Action
Command Injection in Glances KVM/QEMU Monitoring Tool

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-26
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
glances glances 4.5.5
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

This vulnerability allows an attacker with certain privileges to execute arbitrary commands as the Glances user, typically root, on hypervisor hosts. Such unauthorized command execution can lead to full system compromise, including data exfiltration, file tampering, and service disruption.

These impacts can result in violations of common standards and regulations such as GDPR and HIPAA, which require protection of sensitive data and system integrity. Specifically, unauthorized data access or modification could breach data privacy and security requirements mandated by these regulations.

Executive Summary

This vulnerability exists in the Glances monitoring tool prior to version 4.5.5, specifically in its KVM/QEMU monitoring engine. The issue arises because the tool reads virtual machine domain names directly from the output of the 'virsh list --all' command and inserts them into f-string command templates without sanitization. These templates are then processed by a function called secure_popen(), which interprets certain shell operators like &&, |, and >. Because domain names are not sanitized, an attacker who can create or rename a virtual machines can inject arbitrary commands that will be executed with the privileges of the user running Glances, often root.

Impact Analysis

The vulnerability allows an attacker with the ability to create or rename KVM/QEMU virtual machines to execute arbitrary commands on the host operating system with the privileges of the Glances process, which is commonly running as root on hypervisor hosts. This can lead to full system compromise, including unauthorized access, data manipulation, or disruption of services.

Mitigation Strategies

To mitigate this vulnerability, upgrade Glances to version 4.5.5 or later, where the issue has been fixed.

Additionally, restrict the ability to create or rename KVM/QEMU virtual machines to trusted users only, as the vulnerability allows arbitrary command execution by users who can manipulate VM domain names.

Detection Guidance

This vulnerability can be detected by checking if the Glances monitoring tool is running a vulnerable version (prior to 4.5.5) and if the vms plugin is enabled. Additionally, verifying if the system uses the KVM/QEMU VM monitoring engine and if the virsh command is installed is important.

To detect potential exploitation or presence of malicious VM domain names, you can inspect the output of the command `virsh list --all` for suspicious domain names containing shell operators such as &&, |, or >.

Example commands to help detect this vulnerability or its exploitation include:

  • Check Glances version: `glances --version` or check installed package version.
  • List all virtual machines and inspect domain names: `virsh list --all`
  • Search for suspicious characters in domain names: `virsh list --all | grep -E '[&|>]'`
  • Check if the vms plugin is enabled in Glances configuration.

If suspicious domain names are found containing shell operators, this indicates potential exploitation or vulnerability presence.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-46606. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart