<?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>Hermes-Agent — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/hermes-agent/</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, 26 May 2026 13:46:43 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/hermes-agent/feed.xml" rel="self" type="application/rss+xml"/><item><title>NousResearch hermes-agent OS Command Injection Vulnerability (CVE-2026-9367)</title><link>https://feed.craftedsignal.io/briefs/2026-05-hermes-agent-command-injection/</link><pubDate>Tue, 26 May 2026 13:46:43 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-hermes-agent-command-injection/</guid><description>NousResearch hermes-agent up to version 5157f5427f19488b31c6fdebbacd15d798ce7f63 is vulnerable to OS command injection (CVE-2026-9367) in the `detect_dangerous_command` function allowing a remote attacker to execute arbitrary commands.</description><content:encoded><![CDATA[<p>A vulnerability, identified as CVE-2026-9367, exists in NousResearch hermes-agent up to version 5157f5427f19488b31c6fdebbacd15d798ce7f63. The vulnerability resides within the <code>detect_dangerous_command</code> function located in the <code>tools/approval.py</code> file of the <code>terminal_tool</code> component. This flaw enables a remote attacker to inject arbitrary operating system commands. Publicly available exploits exist, increasing the risk of exploitation. The vendor was notified about the vulnerability but has not responded. This vulnerability poses a significant risk to systems running vulnerable versions of hermes-agent, potentially allowing for complete system compromise.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker identifies a vulnerable instance of NousResearch hermes-agent running a version up to 5157f5427f19488b31c6fdebbacd15d798ce7f63.</li>
<li>The attacker crafts a malicious input designed to be processed by the <code>detect_dangerous_command</code> function.</li>
<li>The attacker sends this crafted input to the vulnerable <code>terminal_tool</code> component.</li>
<li>The <code>detect_dangerous_command</code> function fails to properly sanitize the input, allowing the injection of OS commands.</li>
<li>The injected OS command is executed by the system with the privileges of the hermes-agent process.</li>
<li>The attacker gains arbitrary code execution on the target system.</li>
<li>The attacker may then install malware, exfiltrate sensitive data, or pivot to other systems within the network.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-9367 allows a remote, unauthenticated attacker to execute arbitrary commands on the affected system. This can lead to a complete compromise of the system, including the theft of sensitive information, installation of malware, and potential lateral movement within the network. Given the nature of the hermes-agent as an agent, this vulnerability could potentially expose numerous systems if successfully exploited.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Apply any available patches or updates provided by NousResearch to address CVE-2026-9367.</li>
<li>Monitor network traffic for suspicious commands being sent to systems running hermes-agent. Deploy the provided Sigma rule <code>Detect Hermes-Agent Command Injection via detect_dangerous_command</code> to identify command injection attempts.</li>
<li>Implement input validation and sanitization measures within the <code>detect_dangerous_command</code> function to prevent OS command injection.</li>
<li>Review and restrict the permissions of the hermes-agent process to minimize the impact of successful exploitation.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>command-injection</category><category>vulnerability</category><category>cve</category></item></channel></rss>