Skip to main content
EPSS 0.2%top 94%

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

0
High
Published: 08/17/2026 (08/17/2026, 17:10:40 UTC)
Source: CVE Database V5
Vendor/Project: nicolargo
Product: 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

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

nicolargo

glances

Affected versions
<4.5.6
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: 09/29/2026, 04:58:47 UTC

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.

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

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 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