CVE-2026-33641

Glances Vulnerable to Command Injection via Dynamic Configuration Values

Published Apr 2, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
Glances is an open-source system cross-platform monitoring tool. Prior to version 4.5.3, Glances supports dynamic configuration values in which substrings enclosed in backticks are executed as system commands during configuration parsing. This behavior occurs in Config.get_value() and is implemented without validation or restriction of the executed commands. If an attacker can modify or influence configuration files, arbitrary commands will execute automatically with the privileges of the Glances process during startup or configuration reload. In deployments where Glances runs with elevated privileges (e.g., as a system service), this may lead to privilege escalation. This issue has been patched in version 4.5.3.

Analysis

AI-generated

Technical impact

Glances allowed dynamic configuration values where substrings wrapped in backticks are interpreted as shell commands and executed during configuration parsing. Because the code path in Config.get_value() does not validate or restrict these commands, an attacker who can modify the configuration file can inject arbitrary shell commands. If Glances runs with elevated privileges, such injection can lead to privilege escalation and compromise the host. The weakness matches CWE‑78: Improper Neutralization of Special Elements used in an OS Command.

Affected Systems

The vulnerability affects the Glances system monitoring tool from nicolargo. All versions prior to 4.5.3 are impacted, including any deployments where the service runs as root or another privileged account. The official fix is delivered in release 4.5.3, which removes execution of backticked expressions and sanitises configuration values. If the application is still running an older release, it remains susceptible.

Risk and Exploitability

With a CVSS base score of 7.8 the vulnerability is considered high risk. However, the EPSS score indicates that exploitation likelihood is below 1 %. The issue has not been listed in CISA’s KEV catalog, suggesting no widespread automated exploitation. The attack requires the attacker to write to the Glances configuration file or otherwise influence its content, which may be possible through local access, compromised user accounts, or network exposure of configuration endpoints. If vulnerable, an attacker can execute arbitrary commands with the same privileges as the Glances process, potentially gaining root access on systems where the service runs as root.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Glances to version 4.5.3 or later, which removes the vulnerability.
  • After applying the patch, ensure the configuration directory and files are owned by the Glances user and have restrictive permissions (e.g., 600) to prevent unauthorized modification.
  • If an immediate upgrade is not possible, consider placing the Glances process in a non‑privileged account or restricting its ability to read and write configuration files.

Generated by OpenCVE AI on April 7, 2026 at 19:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qhj7-v7h7-q4c7 Glances Vulnerable to Command Injection via Dynamic Configuration Values
History
Type Values Removed Values Added
CPEs cpe:2.3:a:nicolargo:glances:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nicolargo
Nicolargo glances
Vendors & Products Nicolargo
Nicolargo glances
Type Values Removed Values Added
Description Glances is an open-source system cross-platform monitoring tool. Prior to version 4.5.3, Glances supports dynamic configuration values in which substrings enclosed in backticks are executed as system commands during configuration parsing. This behavior occurs in Config.get_value() and is implemented without validation or restriction of the executed commands. If an attacker can modify or influence configuration files, arbitrary commands will execute automatically with the privileges of the Glances process during startup or configuration reload. In deployments where Glances runs with elevated privileges (e.g., as a system service), this may lead to privilege escalation. This issue has been patched in version 4.5.3.
Title Glances Vulnerable to Command Injection via Dynamic Configuration Values
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 2, 2026, 4:22 PM
Reserved
Mar 23, 2026, 2:24 PM
Status
Analyzed
Published
Apr 2, 2026, 3:16 PM
Modified
Oct 26, 2026, 10:10 PM