What’s Vulnerable › Vulnerabilities
CVE-2026-53925: Glances: Arbitrary file write and command execution via `secure_popen` redirection and chaining operators in AMP command configuration
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-25 · updated 2026-10-25
- Weakness: CWE-22
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.
Affected products
- nicolargo glances: from 4.0.8, < 4.5.5
References
- https://github.com/nicolargo/glances/security/advisories/GHSA-3vwc-qwhc-3mj7
- https://github.com/nicolargo/glances/security/advisories/GHSA-3vwc-qwhc-3mj7
Get alerted when CVE-2026-53925 or the next vulnerability affects your stack