Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain write access to glances.conf
-
DeliveryInject shell operator into alert action directive
-
ExploitStart or confirm Glances runs with --disable-config-exec
-
ExecutionGenerate load to trigger alert threshold
-
PersistGlancesActions.run() calls secure_popen with allow_operators=True
-
ImpactShell interprets operators and executes chained command at Glances process privilege
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must have write access to the Glances configuration file ( |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:H/UI:N) with score 7.1 accurately represents the constrained threat model: local access is required, and the attacker must hold write privileges over the Glances configuration file (PR:H). The AT:P metric reflects that alert threshold crossing is a prerequisite - this can be engineered by a local attacker (e.g., CPU stress test) or may occur organically. The primary risk is to environments where operators have explicitly enabled |
| Exploit ScenarioDerived | A local attacker with write access to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Glances versions through 4.5.5 contain an incomplete fix for CVE-2026-53925: the --disable-config-exec flag correctly suppresses shell operator interpretation in AMP module commands but fails to do so for on-alert action commands in glances/actions.py, where secure_popen() is called without allow_operators=False. An attacker with write access to glances.conf can place shell metacharacters (>, &&, |) in alert action directives, which execute at the Glances process privilege when an alert threshold is crossed - despite the operator supposedly operating in hardened mode. No public exploit confirmed active exploitation (no CISA KEV listing); a benign proof-of-concept is documented in GHSA-59fj-m2j6-hcxh. The fix is available in Glances 4.5.6.
RemediationAI
Upgrade Glances to version 4.5.6 via pip install --upgrade 'glances==4.5.6'; the fix (commit 5c07c0d96423e9d5b9de71dd92e3717c66f504bd) adds an allow_operators() method to GlancesActions that propagates the --disable-config-exec flag into all secure_popen() calls on the alert action path. Release notes are at https://github.com/nicolargo/glances/releases/tag/v4.5.6. For environments that cannot immediately patch, restrict write permissions on glances.conf to the Glances process owner only (chmod 640 and ensure only the dedicated service account can write), preventing unprivileged users from injecting shell operators into alert action directives. Additionally, audit existing [cpu], [mem], and other threshold sections in glances.conf for any entries containing >, &&, or | in action values, and remove or sanitize them. Note that the permission restriction does not eliminate the vulnerability if the attacker already holds equivalent privilege - patching is the only complete remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Glances is a Python-based cross-platform system monitoring tool distributed via pip (CPE: cpe:2.3:a:nicolargo:glances:*:*:*:*:*:*:*:*). Its secure_popen() utility accepts an allow_operators boolean that governs whether shell metacharacters (&&, |, >) are passed to the shell for interpretation. When --disable-config-exec is active, the AMP modules (e.g., glances/amps/default/__init__.py, glances/amps/systemv/__init__.py) correctly call secure_popen(..., allow_operators=self.allow_operators()) to strip those operators. However, GlancesActions.run() in glances/actions.py line 111 calls secure_popen(cmd_full) with no allow_operators argument, defaulting to True. CWE-78 (Improper Neutralization of Special Elements in an OS Command) describes the root class: user-supplied configuration values containing shell operators reach an execution sink without proper sanitization, making the security flag ineffective for this code path.
Know when Glances gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local access and config-file write privilege (PR:H, AV:L) are required; impact is bounded to the Glances process with no scope change to other components (S:U).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Glances is an open-source system cross-platform monitoring tool. Prior to 4.5.6, GlancesActions.run() in glances/actions.py ignores --disable-config-exec for on-alert action commands and invokes secure_popen() with shell operators enabled, allowing configured redirection, command chaining, or pipes to execute when an alert triggers. This issue is fixed in 4.5.6.
Executive ViewAI
Glances system monitoring software versions through 4.5.5 contain a command injection vulnerability in alert action handling that allows attackers with configuration file write access to execute arbitrary shell commands at Glances process privilege levels. Organizations deploying Glances for infrastructure visibility face unauthorized command execution risk on monitored systems, particularly where configuration file integrity is not strictly enforced. This represents a critical control gap in environments where configuration management access is not restricted.
Vendor-released patch: Glances 4.5.6. Interim mitigations pending patching: restrict write permissions on glances.conf to the Glances service account only, disable alert actions if operationally non-essential, run Glances with least-privilege process credentials, and implement file integrity monitoring on configuration files.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
The package glances before 3.2.1 are vulnerable to XML External Entity (XXE) Injection via the use of Fault to parse unt
Command injection in Glances prior to 4.5.6 allows a local unprivileged user to execute arbitrary shell commands when ad
Glances is an open-source system cross-platform monitoring tool. versions up to 4.5.1 is affected by information exposur
Command injection in Glances system monitoring (versions 4.5.2 through 4.5.5) allows a local attacker with process-execu
Cross-origin data exfiltration in Glances web server allows remote unauthenticated attackers to read sensitive system in
Server-Side Request Forgery in Glances IP plugin allows authenticated attackers to force the monitoring application to s
SQL injection in Glances TimescaleDB export module allows local attackers to execute arbitrary SQL commands against the
Glances REST API prior to 4.5.6 exposes authenticated system monitoring data to untrusted cross-origin websites due to a
Cassandra export module in Glances prior to version 4.5.4 allows local privilege-escalated users to redirect monitoring
Credential disclosure in Glances prior to 4.5.6 allows unauthenticated remote attackers to retrieve plaintext usernames
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-60305
GHSA-59fj-m2j6-hcxh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB