CVE-2026-133465: Glances: Argument Injection in On-Alert Action Commands via Unescaped Quote Characters in secure.py's Command Tokenizer
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.5.7
Event History
Frequently Asked Questions
Which deployments are affected?
Glances versions prior to 4.5.7 are affected when they use on-alert action command templates that quote monitored statistic values. Version 4.5.7 contains the fix.
What conditions are required for exploitation?
An attacker needs low-level privileges and must be able to cause a monitored statistic value, such as a mount point name, to contain a quote character. The affected value must be inserted into a quoted field in an on-alert action command template.
Does exploitation require shell metacharacters or shell operators?
No. The injected quote alters the command tokenizer's argument boundaries, allowing additional arguments to be passed to the invoked process without requiring a shell operator.
What can be done if an immediate upgrade is not possible?
Avoid or review on-alert action command templates that place monitored statistic values inside quotes, particularly values that could be influenced through names such as mount points. Restrict who can create or alter monitored resources and Glances alert configuration until upgrading to 4.5.7.