Description
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, _sanitize_mustache_dict() in glances/actions.py sanitizes individual Mustache values before chevron.render(), allowing adjacent unescaped Mustache variables to reconstruct shell operators that secure_popen() executes when attacker-controlled process or container fields are rendered by an administrator-configured action template. This issue is fixed in 4.5.6.
Published: 2026-08-17
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Glances, a cross‑platform monitoring tool, uses a Mustache‑based templating system for administrator‑configured action templates. In versions prior to 4.5.6 an individual variable sanitizer in _sanitize_mustache_dict() does not prevent adjacent unescaped Mustache variables from being concatenated into shell operators that secure_popen() will interpret. As a result, an attacker who can influence the process or container fields in a template can inject arbitrary shell commands that will be executed with the privileges of the Glances process, leading to remote code execution on the host.

Affected Systems

The vulnerability affects the Glances package from the vendor nicolargo. Any installation using version 4.5.5 or earlier is impacted; the issue was resolved in version 4.5.6.

Risk and Exploitability

The CVSS score is 8.8, indicating a high severity. EPSS is not available, and KEV has not listed this issue, so the measured likelihood of exploitation is unknown. Based on the description, exploitation requires the ability to modify the administrator‑defined action template or supply attacker‑controlled process/ container values. If an attacker gains that level of access, they can trigger arbitrary shell command execution. The vulnerability is not yet catalogued in CISA KEV, but the high CVSS indicates significant risk for affected installations if the templates remain editable.

Generated by OpenCVE AI on August 17, 2026 at 17:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Glances to version 4.5.6 or later to receive the fix for the sanitization bypass.
  • If an upgrade cannot be performed immediately, restrict or disable the use of administrator‑configured action templates that allow attacker‑controlled process or container fields.
  • Review existing templates and enforce proper escaping or validation of Mustache variables to ensure shell operators cannot be reconstructed.

Generated by OpenCVE AI on August 17, 2026 at 17:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-qcpp-8x79-hhp3 Glances has a command injection bypass of action-template sanitizer via cross-field shell-operator reconstruction
History

Mon, 17 Aug 2026 17:45:00 +0000

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

Mon, 17 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Description Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, _sanitize_mustache_dict() in glances/actions.py sanitizes individual Mustache values before chevron.render(), allowing adjacent unescaped Mustache variables to reconstruct shell operators that secure_popen() executes when attacker-controlled process or container fields are rendered by an administrator-configured action template. This issue is fixed in 4.5.6.
Title Glances: Command injection bypass of action-template sanitizer via cross-field shell-operator reconstruction
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


Subscriptions

Nicolargo Glances
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-17T19:37:48.603Z

Reserved: 2026-07-30T16:19:08.082Z

Link: CVE-2026-68518

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T17:16:40.353

Modified: 2026-08-17T17:16:40.353

Link: CVE-2026-68518

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T17:30:18Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')