CVE-2026-53925 Glances has arbitrary file write and command execution via `secure_popen` redirection and chaining operators in AMP command configuration
Attackers with config file access can execute arbitrary commands and write files via unsanitized operators in Glances AMP configurations.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-53925?
CVE-2026-53925 is a high-severity command injection vulnerability in nicolargo glances, published on 25 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-53925?
3 open source packages ship an affected version, including glances.
| Package | Affected | Fixed in |
|---|---|---|
glances PyPI | From 4.0.8 | 4.5.5 |
glances PyPI | From 4.0.8 | 4.5.5 |
glances PyPI | From 4.0.8 | 4.5.5 |
How do I fix CVE-2026-53925?
Upgrade glances to 4.5.5 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-53925 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53925 exists.
Sources
Also known as DEBIAN-CVE-2026-53925, GHSA-3vwc-qwhc-3mj7, PYSEC-2026-2494, UBUNTU-CVE-2026-53925.