Description
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.
Published: 2026-04-02
Score: 7.8 High
EPSS: n/a
KEV: No
Impact: Command Execution Possibility
Action: Immediate Patch
AI Analysis

Impact

Glances is an open‑source system monitoring application that, until version 4.5.3, processed configuration entries containing back‑ticked substrings as shell commands. The parsing routine executs these commands without any validation or restriction. As a result, any attacker who can modify or influence the configuration files can insert arbitrary shell commands that run with the privileges of the Glances process during startup or when the configuration is reloaded. If Glances is executed as a system service or under an elevated account, this flaw can lead to privilege escalation, allowing the attacker to execute commands with administrative rights on the host.

Affected Systems

All installations of nicolargo Glances prior to version 4.5.3 are affected. Users operating the application with elevated privileges, such as system services or users with administrative rights, are at higher risk because the executed commands inherit those privileges. The vulnerability is not limited to a single instance; any host running an old Glances binary is potentially vulnerable.

Risk and Exploitability

The CVSS v3.1 base score of 7.8 indicates high severity. Epistemical probability data (EPSS) is not available and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack vector requires the ability to modify or influence the Glances configuration files; no network‑based exploitation path is documented in the input. Therefore, if an attacker has local or remote write access to the configuration location, they can trigger arbitrary command execution. The lack of input validation and the potential for elevated execution make exploitation feasible and dangerous, particularly in environments where Glances runs with system‑level privileges.

Generated by OpenCVE AI on April 2, 2026 at 16:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Glances to version 4.5.3 or later, which removes the unsafe back‑tick execution feature.
  • If an immediate upgrade is not possible, restrict ownership and permissions on the Glances configuration files to the application user and deny write access to untrusted accounts.
  • If dynamic configuration parsing is unnecessary, disable the feature or limit the configuration files that the application can read.
  • Run the Glances service with the least required privileges, avoiding elevated or root execution whenever feasible.

Generated by OpenCVE AI on April 2, 2026 at 16:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qhj7-v7h7-q4c7 Glances Vulnerable to Command Injection via Dynamic Configuration Values
History

Thu, 02 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Nicolargo
Nicolargo glances
Vendors & Products Nicolargo
Nicolargo glances

Thu, 02 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Glances Vulnerable to Command Injection via Dynamic Configuration Values
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Nicolargo Glances
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-02T16:22:08.154Z

Reserved: 2026-03-23T14:24:11.620Z

Link: CVE-2026-33641

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-04-02T15:16:40.040

Modified: 2026-04-02T17:16:22.843

Link: CVE-2026-33641

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-02T20:20:15Z

Weaknesses