Glances Vulnerable to Command Injection via Dynamic Configuration Values
Platform
python
Component
glances
Fixed in
4.5.3
Glances is an open-source system cross-platform monitoring tool. Prior to version 4.5.3, Glances supports dynamic configuration values in which substrings enclosed in backticks are executed as system commands during configuration parsing. This behavior occurs in Config.get_value() and is implemented without validation or restriction of the executed commands. If an attacker can modify or influence configuration files, arbitrary commands will execute automatically with the privileges of the Glances process during startup or configuration reload. In deployments where Glances runs with elevated privileges (e.g., as a system service), this may lead to privilege escalation. This issue has been patched in version 4.5.3.
How to fix
Actualice Glances a la versión 4.5.3 o superior. Esta versión corrige la vulnerabilidad de inyección de comandos al deshabilitar la ejecución de comandos del sistema durante el análisis de la configuración. La actualización evitará la ejecución de comandos arbitrarios si un atacante modifica los archivos de configuración.
Monitor your dependencies automatically
Get notified when new vulnerabilities affect your projects. Free forever.
Start free