Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-68518: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances

0
High
VulnerabilityCVE-2026-68518cvecve-2026-68518cwe-78
Published: 08/17/2026 (08/17/2026, 16:18:29 UTC)
Source: CVE Database V5
Vendor/Project: nicolargo
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
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

Affected software

glances
pkg:pypi/glances
Affected versions
<4.5.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/17/2026, 16:56:16 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses