CVE-2026-33641: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances
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.
AI Analysis
Technical Summary
Glances is a cross-platform, open-source system monitoring tool that allows dynamic configuration values to be specified in its configuration files. Prior to version 4.5.3, Glances parses configuration values and executes any substring enclosed in backticks as a system command during configuration parsing via the Config.get_value() function. This execution occurs without any validation or restriction, creating an OS command injection vulnerability (CWE-78). If an attacker can modify or influence the configuration files—either by direct file access or through other means—they can inject arbitrary system commands that will be executed with the privileges of the Glances process during startup or configuration reload. In environments where Glances runs with elevated privileges (for example, as a system service running as root or administrator), this can lead to privilege escalation, allowing the attacker to gain unauthorized control over the system. The vulnerability is local vector (AV:L), requires low attack complexity (AC:L), and low privileges (PR:L) but no user interaction (UI:N). The vulnerability affects all versions prior to 4.5.3, which has patched this issue by removing or restricting the unsafe command execution behavior. No known exploits are currently reported in the wild, but the vulnerability poses a significant risk due to the potential for privilege escalation and full system compromise.
Potential Impact
The impact of this vulnerability is significant for organizations using Glances versions prior to 4.5.3, especially where Glances runs with elevated privileges. Successful exploitation allows an attacker with the ability to modify configuration files to execute arbitrary commands, potentially leading to full system compromise. This affects confidentiality, as sensitive data can be accessed or exfiltrated; integrity, as system files and configurations can be altered; and availability, as attackers can disrupt or disable system monitoring or other critical services. In environments where Glances is deployed as a system service or with administrative privileges, the risk escalates to privilege escalation, enabling attackers to gain persistent and powerful access. This can facilitate lateral movement, data breaches, or deployment of further malware. Organizations relying on Glances for system monitoring must consider the risk of insider threats or attackers who have gained limited local access, as they could leverage this vulnerability to escalate privileges and compromise critical infrastructure.
Mitigation Recommendations
To mitigate this vulnerability, organizations should immediately upgrade Glances to version 4.5.3 or later, where the unsafe command execution behavior has been patched. Until upgrading is possible, restrict access to Glances configuration files to trusted administrators only, using strict file permissions and access controls to prevent unauthorized modification. Monitor configuration files for unauthorized changes using file integrity monitoring tools. Avoid running Glances with elevated privileges unless absolutely necessary; run it with the least privileges required to reduce the impact of potential exploitation. Implement host-based intrusion detection systems to detect suspicious command execution or configuration reload events. Additionally, conduct regular audits of system services and configurations to ensure no unauthorized changes have been made. Educate system administrators about the risks of dynamic command execution in configuration files and encourage best practices for secure configuration management.
Affected Countries
United States, Germany, France, United Kingdom, Canada, Australia, Japan, South Korea, India, Brazil, Netherlands, Sweden, Singapore
CVE-2026-33641: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in nicolargo glances
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Glances is a cross-platform, open-source system monitoring tool that allows dynamic configuration values to be specified in its configuration files. Prior to version 4.5.3, Glances parses configuration values and executes any substring enclosed in backticks as a system command during configuration parsing via the Config.get_value() function. This execution occurs without any validation or restriction, creating an OS command injection vulnerability (CWE-78). If an attacker can modify or influence the configuration files—either by direct file access or through other means—they can inject arbitrary system commands that will be executed with the privileges of the Glances process during startup or configuration reload. In environments where Glances runs with elevated privileges (for example, as a system service running as root or administrator), this can lead to privilege escalation, allowing the attacker to gain unauthorized control over the system. The vulnerability is local vector (AV:L), requires low attack complexity (AC:L), and low privileges (PR:L) but no user interaction (UI:N). The vulnerability affects all versions prior to 4.5.3, which has patched this issue by removing or restricting the unsafe command execution behavior. No known exploits are currently reported in the wild, but the vulnerability poses a significant risk due to the potential for privilege escalation and full system compromise.
Potential Impact
The impact of this vulnerability is significant for organizations using Glances versions prior to 4.5.3, especially where Glances runs with elevated privileges. Successful exploitation allows an attacker with the ability to modify configuration files to execute arbitrary commands, potentially leading to full system compromise. This affects confidentiality, as sensitive data can be accessed or exfiltrated; integrity, as system files and configurations can be altered; and availability, as attackers can disrupt or disable system monitoring or other critical services. In environments where Glances is deployed as a system service or with administrative privileges, the risk escalates to privilege escalation, enabling attackers to gain persistent and powerful access. This can facilitate lateral movement, data breaches, or deployment of further malware. Organizations relying on Glances for system monitoring must consider the risk of insider threats or attackers who have gained limited local access, as they could leverage this vulnerability to escalate privileges and compromise critical infrastructure.
Mitigation Recommendations
To mitigate this vulnerability, organizations should immediately upgrade Glances to version 4.5.3 or later, where the unsafe command execution behavior has been patched. Until upgrading is possible, restrict access to Glances configuration files to trusted administrators only, using strict file permissions and access controls to prevent unauthorized modification. Monitor configuration files for unauthorized changes using file integrity monitoring tools. Avoid running Glances with elevated privileges unless absolutely necessary; run it with the least privileges required to reduce the impact of potential exploitation. Implement host-based intrusion detection systems to detect suspicious command execution or configuration reload events. Additionally, conduct regular audits of system services and configurations to ensure no unauthorized changes have been made. Educate system administrators about the risks of dynamic command execution in configuration files and encourage best practices for secure configuration management.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-23T14:24:11.620Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69ce866ce6bfc5ba1de3360d
Added to database: 4/2/2026, 3:08:28 PM
Last enriched: 4/2/2026, 3:38:42 PM
Last updated: 4/3/2026, 5:51:17 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.