glances is vulnerable to OS Command Injection
88
High Risk
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.
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.
glances is vulnerable to OS Command Injection in versions 4.5.2 - 4.5.5.
Upgrade the glances library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant