glances is vulnerable to OS Command Injection
88
CVE Score
High
OS Command Injection
Glances renders monitoring stat fields into administrator-configured action command templates and executes the result through secure_popen(). The _sanitize_mustache_dict() sanitiser only strips shell operators from top-level string values and passes nested list or dict values through unchanged. A process cmdline, which is attacker-controlled through argv and exposed as a list, can carry a | that survives Mustache rendering and is interpreted as a pipe, re-enabling OS command injection in the Glances process context. The fix sanitises stat values recursively so operators inside nested values are also neutralised.
Upgrade the glances library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you have configured an action command template that renders a nested stat field such as a process cmdline.
4.5.2 - 4.5.5
Fixed in 4.5.6glances is vulnerable to OS Command Injection in versions 4.5.2 - 4.5.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.