CVE-2026-68518: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances
CVE-2026-68518 is a high-severity OS command injection vulnerability in the open-source monitoring tool Glances. Prior to version 4.5.6, the function _sanitize_mustache_dict() in glances/actions.py inadequately sanitizes Mustache template values, allowing adjacent unescaped variables to reconstruct shell operators. These operators are executed by secure_popen() when attacker-controlled process or container fields are rendered via administrator-configured action templates. This issue is fixed in Glances version 4.5.6.
AI Analysis
Technical Summary
Glances versions before 4.5.6 contain an OS command injection vulnerability (CWE-78) due to improper neutralization of special elements in Mustache templates. The sanitization function _sanitize_mustache_dict() only sanitizes individual Mustache values, but adjacent unescaped variables can combine to form shell operators. These operators are then executed by the secure_popen() function when rendering attacker-controlled process or container fields in administrator-configured action templates. This vulnerability allows a user with limited privileges to execute arbitrary OS commands with the privileges of the Glances process. The vulnerability is resolved in version 4.5.6.
Potential Impact
An attacker with the ability to influence process or container fields rendered by administrator-configured action templates can execute arbitrary OS commands on the host system. This could lead to privilege escalation, system compromise, or disruption of monitoring services. The CVSS 4.0 base score is 8.8 (high), reflecting the complexity and impact of the vulnerability.
Mitigation Recommendations
This vulnerability is fixed in Glances version 4.5.6. Users should upgrade to version 4.5.6 or later to remediate this issue. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed beyond the fix in 4.5.6; users should verify with the vendor advisory for the latest guidance.
CVE-2026-68518: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances
Description
CVE-2026-68518 is a high-severity OS command injection vulnerability in the open-source monitoring tool Glances. Prior to version 4.5.6, the function _sanitize_mustache_dict() in glances/actions.py inadequately sanitizes Mustache template values, allowing adjacent unescaped variables to reconstruct shell operators. These operators are executed by secure_popen() when attacker-controlled process or container fields are rendered via administrator-configured action templates. This issue is fixed in Glances version 4.5.6.
CVSS v4.0
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Glances versions before 4.5.6 contain an OS command injection vulnerability (CWE-78) due to improper neutralization of special elements in Mustache templates. The sanitization function _sanitize_mustache_dict() only sanitizes individual Mustache values, but adjacent unescaped variables can combine to form shell operators. These operators are then executed by the secure_popen() function when rendering attacker-controlled process or container fields in administrator-configured action templates. This vulnerability allows a user with limited privileges to execute arbitrary OS commands with the privileges of the Glances process. The vulnerability is resolved in version 4.5.6.
Potential Impact
An attacker with the ability to influence process or container fields rendered by administrator-configured action templates can execute arbitrary OS commands on the host system. This could lead to privilege escalation, system compromise, or disruption of monitoring services. The CVSS 4.0 base score is 8.8 (high), reflecting the complexity and impact of the vulnerability.
Mitigation Recommendations
This vulnerability is fixed in Glances version 4.5.6. Users should upgrade to version 4.5.6 or later to remediate this issue. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed beyond the fix in 4.5.6; users should verify with the vendor advisory for the latest guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-30T16:19:08.082Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8339cebf8831d53935e306
Added to database: 08/17/2026, 16:41:50 UTC
Last enriched: 08/17/2026, 16:56:16 UTC
Last updated: 08/17/2026, 17:04:31 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.