CVE-2026-53925: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nicolargo glances
Glances is an open-source system cross-platform monitoring tool. From 4.0.8 until 4.5.5, the secure_popen() function in glances/secure.py interprets > (file redirection), | (pipe), and && (command chaining) operators in command strings. These operators are applied without any validation on the target file path, piped command, or chained command. When Application Monitoring Process (AMP) modules load their command or service_cmd configuration values from glances.conf, those values are passed directly to secure_popen() with no sanitization. This allows an attacker who can modify the Glances configuration file to write arbitrary content to arbitrary filesystem paths (via >), chain arbitrary commands (via &&), or pipe command output to arbitrary programs (via |). This vulnerability is fixed in 4.5.5.
AI Analysis
Technical Summary
Glances, an open-source cross-platform system monitoring tool, contains a path traversal vulnerability in versions >=4.0.8 and <4.5.5. The secure_popen() function in glances/secure.py processes shell command strings containing redirection (>), pipe (|), and command chaining (&&) operators without sanitizing the inputs. When Application Monitoring Process (AMP) modules load command or service_cmd values from the glances.conf configuration file, these unsanitized values are passed directly to secure_popen(). This allows an attacker with the ability to modify the configuration file to write arbitrary content to arbitrary filesystem locations, execute chained commands, or pipe command output to arbitrary programs. The vulnerability is addressed in Glances version 4.5.5.
Potential Impact
Successful exploitation allows an attacker with write access to the Glances configuration file to perform arbitrary file writes, execute arbitrary chained commands, and pipe command outputs to arbitrary programs. This can lead to full system compromise with high confidentiality, integrity, and availability impact as indicated by the CVSS score of 7.8.
Mitigation Recommendations
A fixed version of Glances is available at 4.5.5. Users should upgrade to version 4.5.5 or later to remediate this vulnerability. Since the vulnerability requires the attacker to modify the Glances configuration file, restricting write access to this file is also a recommended security measure. Patch status is not explicitly stated in the vendor advisory, but the description confirms the issue is fixed in 4.5.5.
CVE-2026-53925: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in nicolargo glances
Description
Glances is an open-source system cross-platform monitoring tool. From 4.0.8 until 4.5.5, the secure_popen() function in glances/secure.py interprets > (file redirection), | (pipe), and && (command chaining) operators in command strings. These operators are applied without any validation on the target file path, piped command, or chained command. When Application Monitoring Process (AMP) modules load their command or service_cmd configuration values from glances.conf, those values are passed directly to secure_popen() with no sanitization. This allows an attacker who can modify the Glances configuration file to write arbitrary content to arbitrary filesystem paths (via >), chain arbitrary commands (via &&), or pipe command output to arbitrary programs (via |). This vulnerability is fixed in 4.5.5.
CVSS v3.1
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Glances, an open-source cross-platform system monitoring tool, contains a path traversal vulnerability in versions >=4.0.8 and <4.5.5. The secure_popen() function in glances/secure.py processes shell command strings containing redirection (>), pipe (|), and command chaining (&&) operators without sanitizing the inputs. When Application Monitoring Process (AMP) modules load command or service_cmd values from the glances.conf configuration file, these unsanitized values are passed directly to secure_popen(). This allows an attacker with the ability to modify the configuration file to write arbitrary content to arbitrary filesystem locations, execute chained commands, or pipe command output to arbitrary programs. The vulnerability is addressed in Glances version 4.5.5.
Potential Impact
Successful exploitation allows an attacker with write access to the Glances configuration file to perform arbitrary file writes, execute arbitrary chained commands, and pipe command outputs to arbitrary programs. This can lead to full system compromise with high confidentiality, integrity, and availability impact as indicated by the CVSS score of 7.8.
Mitigation Recommendations
A fixed version of Glances is available at 4.5.5. Users should upgrade to version 4.5.5 or later to remediate this vulnerability. Since the vulnerability requires the attacker to modify the Glances configuration file, restricting write access to this file is also a recommended security measure. Patch status is not explicitly stated in the vendor advisory, but the description confirms the issue is fixed in 4.5.5.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T15:46:12.316Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3d73fb4853345fc14dfa32
Added to database: 06/25/2026, 18:31:23 UTC
Last enriched: 06/25/2026, 18:46:34 UTC
Last updated: 06/25/2026, 20:56:45 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.