The vulnerability is a classic command injection located in the KVM/QEMU monitoring engine of Glances. The root cause was the unsafe construction of shell commands using f-strings, where unsanitized virtual machine domain names were directly embedded into the command. These commands were then processed by a secure_popen function that explicitly interprets shell operators like &&, |, and >. The analysis of the patch commit e1f6c387dd9cdb378c950afa0889d6a5ec6b7bb7 confirms this. The patch replaces the insecure secure_popen calls within the VmExtension.update_stats and VmExtension.update_title functions with a new _run_virsh helper function. This new function utilizes subprocess.run with a list of arguments, which correctly treats the VM domain name as a single, non-executable argument, thereby preventing any shell operator interpretation and mitigating the command injection risk. Any user with privileges to create or rename a VM could have exploited this to gain arbitrary code execution, likely as the root user, on the hypervisor.