Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Glances
  4. ›
  5. CVE-2026-53925

CVE-2026-53925: Glances has arbitrary file write and command execution via `secure_popen` redirection and chaining operators in AMP command configuration

June 23, 2026

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 |).

Crucially, this vulnerability is not mitigated by the --disable-config-exec flag that was introduced to address CVE-2026-33641. That flag only disables backtick command execution in config.get_value(); it does not affect the secure_popen() function’s interpretation of shell-like operators.

References

  • github.com/advisories/GHSA-3vwc-qwhc-3mj7
  • github.com/nicolargo/glances/releases/tag/v4.5.5
  • github.com/nicolargo/glances/security/advisories/GHSA-3vwc-qwhc-3mj7
  • nvd.nist.gov/vuln/detail/CVE-2026-53925

Code Behaviors & Features

Detect and mitigate CVE-2026-53925 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.8 before 4.5.5

Fixed versions

  • 4.5.5

Solution

Upgrade to version 4.5.5 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/Glances/CVE-2026-53925.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 11 Jul 2026 00:16:41 +0000.