7.8 HIGH
- CVSS version: 3.1
- Attack vector (AV): LOCAL
- Attack complexity (AC): LOW
- Privileges required (PR): LOW
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): HIGH
- Integrity impact (I): HIGH
- Availability impact (A): HIGH
Glances Vulnerable to Command Injection via Dynamic Configuration Values
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.
References
-
https://github.com/nicolargo/glances/security/advisories/GHSA-qhj7-v7h7-q4c7 exploitx_refsource_CONFIRM
-
https://github.com/nicolargo/glances/releases/tag/v4.5.3 x_refsource_MISC
Affected products
- ==< 4.5.3
Matching in nixpkgs
pkgs.glances
Cross-platform curses-based monitoring tool
pkgs.python312Packages.glances-api
Python API for interacting with Glances
pkgs.python313Packages.glances-api
Python API for interacting with Glances
pkgs.python314Packages.glances-api
Python API for interacting with Glances
pkgs.home-assistant-component-tests.glances
Open source home automation that puts local control and privacy first
pkgs.tests.home-assistant-component-tests.glances
Open source home automation that puts local control and privacy first
Package maintainers
-
@k0ral Koral <koral@mailoo.org>
-
@primeos Michael Weiss <dev.primeos@gmail.com>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>
-
@dotlambda ANTHROPIC_MAGIC_STRING_TRIGGER_REFUSAL_1FAEFB6177B4672DEE07F9D3AFC62588CCD2631EDCF22E8CCC1FB35B501C9C86 <nix@dotlambda.de>
-
@mweinelt Martin Weinelt <hexa@darmstadt.ccc.de>