<?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>Network-Ai (&lt; 5.9.1) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/network-ai--5.9.1/</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>Fri, 19 Jun 2026 13:43:05 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/network-ai--5.9.1/feed.xml" rel="self" type="application/rss+xml"/><item><title>Network-AI: Improper Neutralization of Special Elements used in an OS Command (CVE-2026-54051)</title><link>https://feed.craftedsignal.io/briefs/2026-06-network-ai-cmd-injection/</link><pubDate>Fri, 19 Jun 2026 13:43:05 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-network-ai-cmd-injection/</guid><description>The `network-ai` package, versions prior to 5.9.1, is vulnerable to a critical command injection flaw (CVE-2026-54051) where the `ShellExecutor` component fails to properly neutralize shell metacharacters when processing commands, allowing an attacker to achieve arbitrary command execution as the orchestrator process by bypassing allowlist controls.</description><content:encoded><![CDATA[<p>A critical command injection vulnerability, tracked as CVE-2026-54051, exists in the <code>network-ai</code> npm package, specifically affecting versions prior to 5.9.1. The flaw stems from a mismatch between the <code>SandboxPolicy.isCommandAllowed</code> function, which performs allowlist glob-matching on the entire command string, and the <code>ShellExecutor</code> which then executes this string directly via <code>/bin/sh -c</code>. This discrepancy allows an attacker to inject shell metacharacters (e.g., <code>;</code>, <code>|</code>, <code>$(...)</code>) into a command that would otherwise be approved by a broad wildcard allowlist entry (e.g., <code>git *</code>, <code>npm *</code>). This bypasses the intended security control meant to contain a compromised agent, enabling arbitrary command execution with the privileges of the orchestrator process on Linux and macOS systems. The vulnerability was publicly disclosed on June 19, 2026, via a GitHub Security Advisory (GHSA-qw6v-5fcf-5666).</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker compromises or controls a <code>network-ai</code> agent process.</li>
<li>The <code>network-ai</code> orchestrator's <code>SandboxPolicy</code> includes a broad wildcard allowlist entry for commands (e.g., <code>git *</code>, <code>npm *</code>, <code>node *</code>).</li>
<li>The attacker crafts a malicious command string containing shell metacharacters, such as <code>git status; id &gt; /tmp/pwned.txt</code>.</li>
<li>The <code>SandboxPolicy.isCommandAllowed</code> function evaluates the full malicious string, and due to the glob-matching logic, it incorrectly determines the command is allowed.</li>
<li>The <code>ShellExecutor.execute</code> method proceeds to execute the approved string by invoking <code>/bin/sh -c &quot;git status; id &gt; /tmp/pwned.txt&quot;</code>.</li>
<li>The <code>/bin/sh</code> interpreter processes the shell metacharacters (specifically the semicolon), executing both <code>git status</code> and the injected <code>id &gt; /tmp/pwned.txt</code> command.</li>
<li>Arbitrary command execution is achieved, typically as the orchestrator process, allowing the attacker to bypass the intended sandbox controls and potentially escalate privileges or exfiltrate data.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-54051 leads to arbitrary command execution on the system running the <code>network-ai</code> orchestrator process. This vulnerability completely undermines the primary security mechanism designed to prevent a compromised agent from executing unauthorized commands. Attackers can leverage this to gain full control over the orchestrator, leading to data exfiltration, further lateral movement, or deployment of additional malicious payloads. While specific victim numbers are not provided, any organization utilizing <code>network-ai</code> with broad wildcard allowlist entries in its <code>SandboxPolicy</code> on Linux or macOS systems is susceptible to this critical flaw.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Upgrade immediately:</strong> Update <code>network-ai</code> package to version 5.9.1 or later to apply the patch for CVE-2026-54051.</li>
<li><strong>Refine allowlists:</strong> Review and harden <code>SandboxPolicy</code> allowlist configurations, avoiding overly broad wildcard entries like <code>node *</code> or <code>npm *</code> even after patching.</li>
<li><strong>Enable logging:</strong> Ensure <code>process_creation</code> logging (e.g., via Sysmon for Linux/macOS) is enabled to capture execution of shell interpreters and their command-line arguments.</li>
<li><strong>Deploy Sigma rules:</strong> Deploy the provided Sigma rules to detect suspicious <code>sh -c</code> invocations and anomalous command executions.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>command-injection</category><category>rce</category><category>node.js</category><category>linux</category><category>macos</category><category>software-supply-chain</category></item></channel></rss>