CVE-2026-46606: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances
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.
AI Analysis
Technical Summary
CVE-2026-46606 is an OS command injection vulnerability in the glances/plugins/vms/engines/virsh.py component of Glances before version 4.5.5. The vulnerability occurs because VM domain names from virsh list --all output are directly interpolated into f-string command templates executed by secure_popen(), which interprets shell operators such as &&, |, and >. Since domain names are not sanitized, an attacker with permission to create or rename KVM/QEMU virtual machines can inject arbitrary shell commands executed with the OS user privileges running Glances, commonly root on hypervisor hosts. This can lead to full system compromise. The vulnerability has a CVSS 3.1 score of 7.8 (high severity) and is fixed in Glances 4.5.5.
Potential Impact
An attacker with the ability to create or rename KVM/QEMU virtual machines on a host running a vulnerable Glances version can execute arbitrary OS commands with the privileges of the Glances process, which is often root. This can lead to complete system compromise, including confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade Glances to version 4.5.5 or later, where this vulnerability is fixed. There is no indication of any temporary or alternative mitigations. Patch status is confirmed fixed in 4.5.5.
CVE-2026-46606: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances
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 v3.1
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46606 is an OS command injection vulnerability in the glances/plugins/vms/engines/virsh.py component of Glances before version 4.5.5. The vulnerability occurs because VM domain names from virsh list --all output are directly interpolated into f-string command templates executed by secure_popen(), which interprets shell operators such as &&, |, and >. Since domain names are not sanitized, an attacker with permission to create or rename KVM/QEMU virtual machines can inject arbitrary shell commands executed with the OS user privileges running Glances, commonly root on hypervisor hosts. This can lead to full system compromise. The vulnerability has a CVSS 3.1 score of 7.8 (high severity) and is fixed in Glances 4.5.5.
Potential Impact
An attacker with the ability to create or rename KVM/QEMU virtual machines on a host running a vulnerable Glances version can execute arbitrary OS commands with the privileges of the Glances process, which is often root. This can lead to complete system compromise, including confidentiality, integrity, and availability impacts.
Mitigation Recommendations
Upgrade Glances to version 4.5.5 or later, where this vulnerability is fixed. There is no indication of any temporary or alternative mitigations. Patch status is confirmed fixed in 4.5.5.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-15T19:34:14.011Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3d73fb4853345fc14dfa22
Added to database: 06/25/2026, 18:31:23 UTC
Last enriched: 06/25/2026, 18:47:41 UTC
Last updated: 06/25/2026, 20:56:49 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.