CVE-2026-68518
Received Received - Intake

Command Injection in Glances Monitoring Tool

Vulnerability report for CVE-2026-68518, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-17

Last updated on: 2026-08-17

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-17
Last Modified
2026-08-17
Generated
2026-08-17
AI Q&A
2026-08-17
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
glances glances to 4.5.6 (exc)
nicolargo glances to 4.5.6 (exc)
nicolargo glances 4.5.6

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a command injection vulnerability in Glances versions 4.5.5 and earlier. It allows attackers with local access to execute arbitrary commands by bypassing the action-template sanitizer. The issue occurs when two unescaped Mustache variables are concatenated without separation, reconstructing shell operators like && or |. The sanitizer only checks individual values but fails to prevent cross-field operator reconstruction.

Detection Guidance

Check Glances version with glances --version. If version is 4.5.5 or earlier, the system is vulnerable. Review action templates for concatenated unescaped Mustache variables like {{{name}}}{{{cmdline}}}. Monitor for unexpected command execution or file modifications.

Impact Analysis

An attacker with local unprivileged access can control process names or container names to inject shell commands. If an administrator has configured an action with concatenated unescaped Mustache variables, the attacker can execute arbitrary commands as the user running Glances, often root. This could lead to full system compromise, file redirection, or data exfiltration.

Compliance Impact

This vulnerability could lead to unauthorized command execution, potentially violating data confidentiality and integrity requirements in GDPR and HIPAA. Unauthorized access to sensitive system data or logs could result in compliance breaches, especially if the compromised system handles personal or health information.

Mitigation Strategies

Upgrade Glances to version 4.5.6 or later. Disable or review action templates configured with unescaped Mustache variables. Restrict local user access to prevent control of stat fields like process names.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68518. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart