CVE-2026-32608 Details
Description
Glances is an open-source system cross-platform monitoring tool. The Glances action system allows administrators to configure shell commands that execute when monitoring thresholds are exceeded. These commands support Mustache template variables (e.g., `{{name}}`, `{{key}}`) that are populated with runtime monitoring data. The `secure_popen()` function, which executes these commands, implements its own pipe, redirect, and chain operator handling by splitting the command string before passing each segment to `subprocess.Popen(shell=False)`. Prior to 4.5.2, when a Mustache-rendered value (such as a process name, filesystem mount point, or container name) contains pipe, redirect, or chain metacharacters, the rendered command is split in unintended ways, allowing an attacker who controls a process name or container name to inject arbitrary commands. Version 4.5.2 fixes the issue.
A command injection vulnerability has been identified in Glances, an open-source cross-platform system monitoring tool. This issue arises in the action command templates, which can include Mustache variables populated with real-time data. Prior to version 4.5.2, the 'secure_popen()' function, responsible for executing these commands, improperly handled user-controlled data such as process names and container names. When such data included metacharacters like pipes or redirects, it could be exploited to inject arbitrary commands. This vulnerability affects Glances versions through 4.5.2-dev01.
Users can upgrade to Glances version 4.5.2, which addresses this vulnerability by sanitizing Mustache-rendered values before they are processed by 'secure_popen()'.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nicolargo/glances/commit/6f4ec53d967478e69917078e6f73f448001bf107 | [email protected] | Patch |
| https://github.com/nicolargo/glances/releases/tag/v4.5.2 | [email protected] | ProductRelease Notes |
| https://github.com/nicolargo/glances/security/advisories/GHSA-vcv2-q258-wrg7 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nicolargo glances | < 4.5.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | Initial Analysis | [email protected] |
| Mar 18, 2026 | New CVE Received | [email protected] |