# CVE-2026-53925: nicolargo Glances command injection in secure_popen via AMP configuration

Source: https://junglewise.ai/threats/cve-2026-53925-nicolargo-glances-command-injection-in-secure-popen-via-amp  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-25. Updated: 2026-06-25  
License: CC BY 4.0 with a link back

CVE-2026-53925 · Severity: high · CVSS 7.8 · Published 2026-06-25

Glances, a popular cross-platform system monitoring tool, contains a vulnerability that allows users with access to the configuration file to execute unauthorized commands. By modifying the configuration to include specific symbols like pipes or redirects, an attacker can force the application to write malicious files or run arbitrary code with the privileges of the Glances process. This could lead to a full system takeover or unauthorized data access, and notably bypasses previous security restrictions intended to prevent such actions.

Technologies: [glances (PyPI)](https://junglewise.ai/threats/technologies/glances). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-53925 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-53925 being exploited in the wild.

**How severe is CVE-2026-53925?** High severity, with a CVSS score of 7.8, published 25 June 2026.

**Which products and versions are affected?** glances (PyPI) >= 4.0.8, < 4.5.5, ECOSYSTEM:introduced=4.0.8,fixed=4.5.5.

**Is there a fix for CVE-2026-53925?** Yes. glances (PyPI): upgrade to 4.5.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-53925 attacked?** It is attacked with local access, in a network appliance.

**Am I affected by CVE-2026-53925?** Check whether you run glances (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- glances (PyPI): upgrade to 4.5.5 or later

  ```sh
  pip install "glances>=4.5.5"
  ```


## Technical details

A vulnerability exists in the `secure_popen()` function within `glances/secure.py` due to the manual interpretation of shell operators including `>`, `|`, and `&&`. When Application Monitoring Process (AMP) modules load `command` or `service_cmd` values from `glances.conf`, these strings are passed to `secure_popen()` without sanitization. An attacker with the ability to modify the configuration file can achieve arbitrary file writes (via redirection) or command chaining. This flaw is distinct from CVE-2026-33641; the `--disable-config-exec` flag does not mitigate this issue as it only targets backtick execution in `config.get_value()`, whereas this vulnerability resides in the subsequent processing of the command string. The issue is resolved in version 4.5.5.

## Affected products

- nicolargo Glances >= 4.0.8, < 4.5.5

## Identifiers

- CVE-2026-53925
- GHSA-3vwc-qwhc-3mj7
- PYSEC-2026-2494

## Timeline

- 2026-06-13: advisory: GitHub advisory published by maintainer
- 2026-06-25: disclosed: NVD publication date
- 2026-06-25: patched: Fixed in version 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)

## Related threats

- [Glances as_dict_secure credential leak in API config endpoint](https://junglewise.ai/threats/cve-2026-68520-glances-as-dict-secure-credential-leak-in-api-config-endpoint)
- [Glances incomplete fix in alert action command execution](https://junglewise.ai/threats/cve-2026-68519-glances-incomplete-fix-in-alert-action-command-execution)
- [Glances incomplete command injection sanitizer fix in nested stat values](https://junglewise.ai/threats/cve-2026-62982-glances-incomplete-command-injection-sanitizer-fix-in-nested-stat)
- [Glances command injection via cross-field shell-operator reconstruction](https://junglewise.ai/threats/cve-2026-68518-glances-command-injection-via-cross-field-shell-operator)
- [Glances REST API CORS credentials bypass via wildcard in multi-origin list](https://junglewise.ai/threats/cve-2026-68517-glances-rest-api-cors-credentials-bypass-via-wildcard-in-multi)
