CVE-2026-33641
highPriorität · verfolgen · 10EPSS 0.009 · 59. PerzentilExploit · PoCEURUUSEPSS · bewertet 2026-10-27
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.
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen
SSVC
Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
Exploits (1)
Öffentlicher Proof-of-Concept- und Exploit-Code.
- EDB-52559glances 4.5.2 - command injectionPoC · exploit_db
betroffene Produkte (5)
Betroffene Produkte und Versionsbereiche.
Advisories (2)
Hersteller- und Ökosystem-Meldungen dazu.
- GHSA-qhj7-v7h7-q4c7Glances Vulnerable to Command Injection via Dynamic Configuration Values2026-03-30ghsa · osvUS
## Summary 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. ## Details 1. Glances loads configuration files from user, system, or custom paths during initialization. 2. When retrieving a configuration value, Config.get_value() scans for substrings enclosed in backticks. **File: glances/config.py** ``` match = self.re_pattern.findall(ret) for m in match: ret = ret.replace(m, system_exec(m[1:-1])) ``` 3. The extracted string is passed directly to system_exec(). **File: glances/globals.py** ```sh res = subprocess.run(command.split(' '), stdout=subprocess.PIPE).stdout.decode('utf-8') ``` 4. The command is executed and its output replaces the original configuration value. This execution occurs automatically whenever the configuration value is read. ### Affected Files glances/config.py — dynamic configuration parsing glances/globals.py — command execution helper ## Proof of Concept (PoC) Scenario: Arbitrary command execution via configuration value **Step 1 — Create malicious configuration file** ```sh /tmp/glances.conf ``` add below txt on the file ``` [outputs] url_prefix = 'id' ``` **Step 2 — Launch Glances with custom configuration** ```sh glances -C /tmp/glances.conf ``` **Step 3 — Observe behavior** When Glances reads the configuration: - The command inside backticks is executed - Output replaces the configuration value - Execution occurs without user interaction Reproduce using Python code ``` import subprocess import re def system_exec(command): return subprocess.run(command.split(' '), stdout=subprocess.PIPE).stdout.decode().strip() value = "`id`" pattern = re.compile(r'(`.+?`)') for m in pattern.findall(value): print(system_exec(m[1:-1])) ``` **Output:** `uid=1000(user) gid=1000(user) groups=1000(user)` ## Impact ### Arbitrary Command Execution Any command enclosed in backticks inside a configuration value will execute with the privileges of the Glances process. ### Potential Privilege Escalation If Glances runs as a privileged service (e.g., root), commands execute with those privileges. Possible scenarios include: - Misconfigured file permissions allowing unauthorized config modification - Shared systems where configuration directories are writable by multiple users - Container environments with mounted configuration volumes - Automated configuration management systems that ingest untrusted data
- PYSEC-2026-21742026-04-02vendor · osvUS
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.
auch bekannt als (7)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (11)
Externe Belege — Patches, Meldungen, Analysen.
- https://github.com/nicolargo/glances/commit/358d76a225fc21a9f95d2c4d7e46fafe64a644c6cnnvd
- https://github.com/nicolargo/glances/releases/Patchcnnvd
- https://github.com/nicolargo/glances/releases/tag/v4.5.3cnnvd
- https://github.com/nicolargo/glances/security/advisories/GHSA-qhj7-v7h7-q4c7cnnvd
- https://www.exploit-db.com/exploits/52559cnnvd
- https://github.com/nicolargo/glances/commit/358d76a225fc21a9f95d2c4d7e46fafe64a644c6enisa_euvd
- https://github.com/nicolargo/glances/releases/tag/v4.5.3enisa_euvd
- https://github.com/nicolargo/glances/security/advisories/GHSA-qhj7-v7h7-q4c7enisa_euvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan