CVE-2026-133465 in Glances
Summary
by MITRE • 11/25/2026
Glances is an open-source system cross-platform monitoring tool. In versions prior to 4.5.7, the on-alert action command tokenizer in secure.py treats quote characters as argument boundaries without escaping. A monitored stat value, such as a mount point name, that is quoted in an action command template can contain a quote character that breaks out of its quote boundary and injects additional arguments into the process the action invokes. No shell operator is needed for this attack. This issue has been fixed in version 4.5.7.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
Glances serves as a widely adopted open-source system monitoring tool designed to provide cross-platform visibility into host metrics such as CPU usage, memory consumption, and disk I/O. The software allows administrators to define custom action commands that trigger specific processes when certain monitored statistics exceed predefined thresholds or meet specified conditions. These actions are processed through an internal command tokenizer located in the secure.py module, which is responsible for parsing user-defined templates into executable arguments for spawned processes. In versions prior to 4.5.7, this tokenizer exhibits a critical logic flaw regarding the handling of quote characters within argument boundaries. Specifically, the parser treats any occurrence of a quotation mark as a delimiter that terminates or initiates an argument segment, failing to properly escape internal quotes that are part of the data payload rather than structural syntax elements.
This architectural oversight creates a direct path for command injection attacks when the monitored stat value contains special characters. For instance, if a monitoring rule is configured to trigger on mount point names and the template includes quoted arguments, an attacker who can influence or predict the content of that statistic can inject additional commands by embedding quote characters within the data string. Because the tokenizer does not distinguish between quotes used for argument delimitation and quotes embedded within the value itself, a carefully crafted input such as a filename containing a double quote will cause the parser to prematurely close the current argument boundary. This allows subsequent text in the input stream to be interpreted as new arguments or commands by the underlying process execution engine.
The severity of this vulnerability is significantly heightened because it does not require shell operators like semicolons, pipes, or backticks for exploitation. Traditional command injection defenses often rely on filtering these special characters, but since Glances invokes processes directly without invoking a system shell interpreter in many configurations, standard shell-based sanitization techniques are ineffective against this specific vector. An attacker with the ability to manipulate monitored data sources, such as through symlink attacks, log poisoning, or compromised monitoring agents that report back malicious stat values, can achieve arbitrary command execution on the host machine where Glances is running. This effectively bypasses security controls designed for shell-based injection vectors and allows for lateral movement or privilege escalation depending on the privileges under which the Glances service operates.
The operational impact of this flaw extends beyond simple remote code execution if the monitoring infrastructure is integrated with broader system management tools. Successful exploitation can lead to data exfiltration, installation of persistent backdoors, or disruption of critical services by terminating essential processes. Given that Glances is often deployed in production environments for real-time observability, an attacker gaining control over its action commands gains a significant foothold within the network perimeter. The vulnerability underscores the risks associated with dynamic command generation based on untrusted input sources, even when those inputs are ostensibly internal metrics rather than direct user-facing web parameters.
To mitigate this risk, organizations running Glances must immediately upgrade to version 4.5.7 or later, where the tokenizer logic has been corrected to properly escape quote characters within argument values. This ensures that quotes embedded in stat data are treated as literal characters rather than structural delimiters. In environments where upgrading is not immediately feasible, administrators should implement strict input validation on any monitored metrics that feed into action command templates, ensuring that special characters including quotation marks are sanitized or escaped before being processed by the Glances engine. Additionally, running Glaces with minimal privileges and restricting the scope of allowed actions can reduce the blast radius in the event of a successful exploitation attempt.