<?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 (&lt;= 0.12.0) — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/hermes-agent--0.12.0/</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>Mon, 01 Jun 2026 04:18:07 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/hermes-agent--0.12.0/feed.xml" rel="self" type="application/rss+xml"/><item><title>NousResearch hermes-agent &lt;= 0.12.0 Code Injection Vulnerability (CVE-2026-10221)</title><link>https://feed.craftedsignal.io/briefs/2026-06-cve-2026-10221-hermes-agent-injection/</link><pubDate>Mon, 01 Jun 2026 04:18:07 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-cve-2026-10221-hermes-agent-injection/</guid><description>NousResearch hermes-agent up to version 0.12.0 is vulnerable to code injection in the _compress_context function of the run_agent.py file, allowing remote exploitation.</description><content:encoded><![CDATA[<p>A code injection vulnerability, tracked as CVE-2026-10221, affects NousResearch hermes-agent versions up to 0.12.0. The vulnerability resides within the <code>_compress_context</code> function of the <code>run_agent.py</code> file, allowing for potential code injection through manipulation of input. Remote exploitation is possible, and a public exploit is reportedly available. The vendor was notified but has not responded. This vulnerability allows an attacker to execute arbitrary code on systems running a vulnerable version of hermes-agent.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker identifies a vulnerable instance of NousResearch hermes-agent running version 0.12.0 or earlier.</li>
<li>Attacker crafts a malicious input string designed to exploit the code injection vulnerability in the <code>_compress_context</code> function within <code>run_agent.py</code>.</li>
<li>The attacker sends the malicious input to the vulnerable function, likely through a network request, triggering the injection point.</li>
<li>The <code>_compress_context</code> function processes the attacker-controlled input without proper sanitization or validation.</li>
<li>The malicious input is interpreted as code and executed by the hermes-agent application, potentially granting the attacker control over the system.</li>
<li>Attacker leverages the injected code to establish persistence on the compromised system, allowing for continued access.</li>
<li>Attacker pivots to other internal systems and attempts to access or exfiltrate sensitive data.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability could lead to arbitrary code execution on the affected system. This could allow an attacker to gain complete control over the hermes-agent instance, potentially leading to data theft, system compromise, or further lateral movement within the network. Due to the nature of the software, this is especially dangerous in AI/ML environments.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Apply appropriate input validation and sanitization to the <code>_compress_context</code> function in <code>run_agent.py</code> (reference CVE-2026-10221).</li>
<li>Deploy the Sigma rule <code>Detect CVE-2026-10221 Exploitation Attempt via run_agent.py</code> to your SIEM and tune for your environment to detect exploitation attempts targeting the vulnerable function.</li>
<li>Monitor network traffic for suspicious activity targeting NousResearch hermes-agent, especially related to calls to the <code>_compress_context</code> function.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>injection</category><category>code injection</category><category>cve-2026-10221</category></item></channel></rss>