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-32608: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances

0
High
VulnerabilityCVE-2026-32608cvecve-2026-32608cwe-78
Published: Wed Mar 18 2026 (03/18/2026, 06:03:22 UTC)
Source: CVE Database V5
Vendor/Project: nicolargo
Product: glances

Description

CVE-2026-32608 is a high-severity OS command injection vulnerability in the open-source system monitoring tool Glances prior to version 4. 5. 2. The flaw arises from improper neutralization of special shell metacharacters in Mustache template variables used in administrator-configured commands triggered by monitoring thresholds. An attacker who can control process names, filesystem mount points, or container names can inject arbitrary commands due to flawed command string splitting in the secure_popen() function. Exploitation requires local access with low privileges and no user interaction but has high impact on confidentiality, integrity, and availability. The vulnerability is fixed in Glances 4. 5. 2. Organizations using affected versions should upgrade promptly and carefully review any custom action commands to avoid injection risks.

AI-Powered Analysis

AILast updated: 03/18/2026, 06:42:42 UTC

Technical Analysis

Glances is a widely used open-source cross-platform system monitoring tool that allows administrators to configure shell commands executed when certain monitoring thresholds are exceeded. These commands can include Mustache template variables, which are dynamically replaced with runtime data such as process names, filesystem mount points, or container names. The vulnerability (CVE-2026-32608) stems from the secure_popen() function's method of executing these commands. This function attempts to handle shell pipe, redirect, and chain operators by splitting the command string before passing each segment to subprocess.Popen with shell=False. However, if a Mustache-rendered variable contains shell metacharacters (e.g., |, >, &&), the splitting logic misinterprets these characters, allowing an attacker who can control the content of these variables to inject arbitrary OS commands. This is a classic OS command injection vulnerability categorized under CWE-78. Exploitation requires the attacker to have low-level privileges on the monitored system to influence process or container names but does not require user interaction. The vulnerability affects all Glances versions prior to 4.5.2, where the issue has been fixed by properly sanitizing or handling special characters in the rendered command strings. No known exploits are currently reported in the wild, but the high impact and relatively straightforward exploitation vector make this a significant risk for affected systems.

Potential Impact

Successful exploitation of this vulnerability can lead to arbitrary command execution with the privileges of the Glances monitoring process, which typically runs with low privileges but may have access to sensitive system information and control. This can compromise system confidentiality by exposing sensitive data, integrity by allowing unauthorized modification or deletion of files, and availability by enabling denial-of-service conditions or system disruption. In multi-tenant or containerized environments, an attacker could leverage this flaw to escalate privileges or move laterally within the network. Organizations relying on Glances for monitoring critical infrastructure or cloud environments may face operational disruptions, data breaches, or further compromise if attackers exploit this vulnerability. The requirement for local access limits remote exploitation but does not eliminate risk, especially in environments where attackers can gain initial footholds or where process/container names can be influenced remotely.

Mitigation Recommendations

The primary mitigation is to upgrade Glances to version 4.5.2 or later, where the vulnerability is fixed. Until upgrading, organizations should audit and restrict the use of custom action commands that incorporate Mustache template variables, especially those that may include user- or process-controlled data. Avoid using untrusted input in command templates and consider disabling the action system if not required. Implement strict access controls to limit who can create or modify monitored processes, containers, or filesystem mounts to reduce the risk of injection. Additionally, monitor logs for suspicious command executions and anomalous process or container names containing shell metacharacters. Employ application whitelisting and endpoint detection to detect and prevent unauthorized command execution. Finally, consider running Glances with the least privileges necessary and within isolated environments to contain potential exploitation impact.

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-03-12T14:54:24.270Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69ba4605771bdb17494b9a01

Added to database: 3/18/2026, 6:28:21 AM

Last enriched: 3/18/2026, 6:42:42 AM

Last updated: 3/18/2026, 7:33:24 AM

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 in Console -> Billing 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