<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cve-2026-33641 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2026-33641/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 02 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2026-33641/feed.xml" rel="self" type="application/rss+xml"/><item><title>Glances Command Injection Vulnerability via Dynamic Configuration</title><link>https://feed.craftedsignal.io/briefs/2024-01-glances-command-injection/</link><pubDate>Tue, 02 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-glances-command-injection/</guid><description>Glances versions 4.5.2 and earlier are vulnerable to command injection via dynamic configuration values, allowing arbitrary command execution with the privileges of the Glances process if an attacker can modify or influence configuration files, potentially leading to privilege escalation.</description><content:encoded><![CDATA[<p>Glances, a system monitoring tool, contains a command injection vulnerability in versions 4.5.2 and earlier. The vulnerability stems from the dynamic configuration parsing in <code>Config.get_value()</code>, where substrings enclosed in backticks are interpreted and executed as system commands. This behavior occurs without proper validation or restriction, allowing an attacker to inject arbitrary commands. If an attacker can modify or influence the Glances configuration files, these commands will execute automatically with the privileges of the Glances process. This is particularly concerning in deployments where Glances runs with elevated privileges, such as when it is configured as a system service. The vulnerability is tracked as CVE-2026-33641.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains access to the Glances configuration file (e.g., through misconfigured file permissions, shared writable directories, or compromised configuration management systems).</li>
<li>Attacker modifies the configuration file to include a malicious command within backticks in a configuration value (e.g., <code>url_prefix = 'id'</code>).</li>
<li>Glances is started or the configuration is reloaded.</li>
<li>During configuration parsing, the <code>Config.get_value()</code> function in <code>glances/config.py</code> identifies the backtick-enclosed substring.</li>
<li>The identified command is extracted and passed to the <code>system_exec()</code> function in <code>glances/globals.py</code>.</li>
<li><code>system_exec()</code> executes the command using <code>subprocess.run()</code> effectively running the injected code on the host.</li>
<li>The output of the executed command replaces the original configuration value.</li>
<li>The attacker achieves arbitrary command execution with the privileges of the Glances process, potentially leading to privilege escalation if Glances runs with elevated permissions.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to execute arbitrary commands on the system with the privileges of the Glances process. If Glances is running as root or another privileged user, this can lead to full system compromise and privilege escalation. The vulnerability affects any system where Glances versions 4.5.2 or earlier is installed and the configuration file is modifiable by a malicious actor. Scenarios include misconfigured file permissions allowing unauthorized config modification, shared systems where configuration directories are writable by multiple users, container environments with mounted configuration volumes, and automated configuration management systems that ingest untrusted data.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Glances to a version greater than 4.5.2 to patch CVE-2026-33641.</li>
<li>Implement strict file permission controls on Glances configuration files to prevent unauthorized modification (reference Attack Chain step 1).</li>
<li>Deploy the Sigma rule <code>Detect Glances Configuration Command Injection</code> to detect attempts to exploit this vulnerability by monitoring process creation events after config file modification.</li>
<li>Monitor file integrity of Glances configuration files using a file integrity monitoring (FIM) system and alert on unauthorized changes to configuration files (reference Attack Chain step 2).</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>glances</category><category>command-injection</category><category>privilege-escalation</category><category>cve-2026-33641</category></item></channel></rss>