glances is vulnerable to OS Command Injection
69
CVE Score
Medium
OS Command Injection
Glances sanitises attacker-influenced stat fields before rendering them into administrator-configured action command templates executed by secure_popen(). The _sanitize_mustache_dict() sanitiser strips shell operators from each value individually but not from the rendered command string. When a template concatenates two adjacent unescaped variables, a trailing single ampersand from one value and a leading one from the next reconstruct a real operator after rendering, re-enabling command chaining, piping and redirection. The fix neutralises lone operator characters so they cannot be recombined across adjacent template variables.
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 concatenates two adjacent unescaped Mustache variables filled from untrusted, user-controlled stat fields such as a process name or command line.
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.