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 an OS command injection vulnerability in the open-source system monitoring tool Glances. Versions prior to 4.5.6 improperly sanitize Mustache template variables, allowing attackers to reconstruct shell operators that are executed by the secure_popen() function. This flaw is fixed in version 4.5.6.
AI Analysis
Technical Summary
Glances versions before 4.5.6 contain an OS command injection vulnerability due to improper neutralization of special elements in Mustache templates. The function _sanitize_mustache_dict() sanitizes individual Mustache values but does not prevent adjacent unescaped variables from combining into shell operators. When attacker-controlled process or container fields are rendered by an administrator-configured action template, these shell operators can be executed by secure_popen(), leading to command injection. The issue is resolved in version 4.5.6.
Potential Impact
An attacker with the ability to control certain process or container fields in Glances templates can execute arbitrary OS commands with the privileges of the process running Glances. This can lead to unauthorized command execution, potentially compromising the host system. The CVSS 4.0 score of 8.8 reflects high severity with significant impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Glances to version 4.5.6 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
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 an OS command injection vulnerability in the open-source system monitoring tool Glances. Versions prior to 4.5.6 improperly sanitize Mustache template variables, allowing attackers to reconstruct shell operators that are executed by the secure_popen() function. This flaw is fixed in version 4.5.6.
CVSS v4.0
Score 8.8high
Affected software
nicolargo
glances
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 due to improper neutralization of special elements in Mustache templates. The function _sanitize_mustache_dict() sanitizes individual Mustache values but does not prevent adjacent unescaped variables from combining into shell operators. When attacker-controlled process or container fields are rendered by an administrator-configured action template, these shell operators can be executed by secure_popen(), leading to command injection. The issue is resolved in version 4.5.6.
Potential Impact
An attacker with the ability to control certain process or container fields in Glances templates can execute arbitrary OS commands with the privileges of the process running Glances. This can lead to unauthorized command execution, potentially compromising the host system. The CVSS 4.0 score of 8.8 reflects high severity with significant impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade Glances to version 4.5.6 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
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
Threat ID: 6a8339cebf8831d53935e306
Added to database: 08/17/2026, 16:41:50 UTC
Last enriched: 09/29/2026, 04:58:47 UTC
Last updated: 10/02/2026, 02:46:06 UTC
Views: 78
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.