Skip to main content

Agentic-Flow CVE-2026-58195

| EUVDEUVD-2026-45256 HIGH
OS Command Injection (CWE-78)
2026-07-17 GitHub_M
8.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Plant malicious value in untrusted content
  2. Delivery
    Agent invokes affected MCP tool with tainted parameter
  3. Exploit
    Metacharacters escape quoted execSync argument
  4. Execution
    Shell executes injected commands
  5. Impact
    Arbitrary OS command execution as MCP server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that one of the vulnerable MCP tools (in standalone-stdio.ts, the fastmcp servers, or the agent/swarm/hooks tool modules) be invoked with an attacker-influenced value for a parameter that reaches the execSync sink - specifically agent, task, name, language, or agentdb - carrying shell metacharacters that escape the surrounding double quotes. For stdio transports, the limiting factor is that the agent must be induced to pass attacker-controlled data (via untrusted web pages, files, or third-party tool output) into the tool, so exploitation depends on the agent processing untrusted content (this is the UI:R gate). For the HTTP/SSE transports (http-sse.ts, http-streaming-updated.ts), the advisory states the sinks are exposed without authentication or Origin/Host validation, so the additional condition is that the operator binds these transports to a network-reachable interface - in that configuration exploitation is unauthenticated and needs no agent interaction. All affected versions are <= 2.0.13; version 2.0.14 removes the sink.

Impact

The reported CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 8.8) reflects network-reachable, low-complexity exploitation yielding full confidentiality, integrity, and availability impact, with user interaction (UI:R) capturing that the agent must process attacker-influenced data. The strongest real-world signal is the published proof of concept - publicly available exploit code exists - but there is no CISA KEV listing and no EPSS score in the provided data, so exploitation appears potential rather than demonstrated in the wild; treat prioritization as driven by POC availability plus product exposure, not confirmed mass exploitation. Genuine risk is highly deployment-dependent: for stdio-transport deployments, exploitation requires the agent to ingest untrusted content, effectively a user-interaction gate (UI:R); for the http-sse.ts / http-streaming-updated.ts transports, the advisory states the same sinks are exposed without authentication or Origin/Host validation, which raises effective severity to unauthenticated network RCE if bound to a reachable interface. No EPSS or KEV data is available to corroborate exploitation likelihood, so the CVSS score and vendor-published POC are the primary evidence; the PR:N/UI:R combination is defensible for the untrusted-content threat model but should be validated against each deployment's actual exposure.

Exploit ScenarioDerived

An attacker plants a malicious instruction inside content the agent will read - a web page, file, or third-party tool response - containing a crafted task value such as x"; touch /tmp/INJECTED; id > /tmp/rce.txt; echo ". When the agent invokes an affected MCP tool with that value, interpolation into the execSync string breaks out of the quotes and the injected commands run with the MCP server user's privileges (POC published in the GHSA advisory). If instead the HTTP/SSE transport is bound to a reachable network, an unauthenticated attacker can call the tool directly with no agent interaction needed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 17, 2026

OS command injection in Agentic-Flow (npm package ruvnet/agentic-flow) before 2.0.14 lets attacker-controlled MCP tool parameters - agent, task, name, language, and agentdb - break out of double-quoted shell arguments and run arbitrary OS commands as the MCP server user. The AI-orchestration platform's MCP server tools interpolated these values straight into strings passed to execSync(), so any untrusted content (web pages, files, third-party tool output) that the agent processes can reach the sink, and the HTTP/SSE transports expose the same sinks over the network without authentication. A working proof of concept is published in the vendor's GHSA advisory; there is no evidence of active in-the-wild exploitation (not in CISA KEV).

RemediationAI

Vendor-released patch: upgrade agentic-flow to 2.0.14 or later (npm install agentic-flow@^2.0.14), which replaces execSync template-string interpolation with execFileSync argv arrays and shell:false; downstream ruflo users should move to 3.12.4, which requires agentic-flow >=2.0.14. The fix is delivered in PR https://github.com/ruvnet/agentic-flow/pull/170 (commit 0c2ec967736a8b6b85832c6bae2a3e74989705ec) and ruflo PR https://github.com/ruvnet/ruflo/pull/2415; see advisory GHSA-vcv2-r9jh-99m5 for details. If immediate patching is not possible, do not expose the HTTP/SSE MCP transports (http-sse.ts, http-streaming-updated.ts) on any reachable network interface - bind them to localhost only and place them behind an authenticating reverse proxy that validates Origin/Host, since the advisory confirms these transports lack authentication (trade-off: breaks remote MCP clients that relied on direct network access). Additionally restrict what untrusted content the agent processes and avoid feeding third-party web/file/tool output into the affected tools (agent, task, name, language, agentdb), and run the MCP server as a low-privilege, sandboxed user to limit blast radius (trade-off: does not close the injection, only reduces impact).

Affected VersionsENISA

agentic-flow < 2.0.14

Affected Packages

npm agentic-flow fix: 2.0.14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Agentic-Flow is a Node.js/TypeScript AI-agent orchestration platform that ships an MCP (Model Context Protocol) server exposing tools the LLM can call. The flaw is a classic CWE-78 (OS Command Injection): affected files (src/mcp/standalone-stdio.ts, the fastmcp servers claude-flow-sdk.ts, stdio-full.ts, http-streaming-updated.ts, http-sse.ts, poc-stdio.ts, and the agent/swarm/hooks tool modules) built shell command strings via template interpolation - e.g. npx --yes agentic-flow --agent "${agent}" --task "${task}" - and passed them to child_process.execSync(), which runs the string through /bin/sh. Because the parameters are placed inside double quotes without escaping, a value containing " and shell metacharacters (;, backticks, $()) escapes the quoting and injects commands. The vendor notes this was a partial-fix gap: an earlier commit 6a06854 (#158) remediated CWE-78 elsewhere but missed the MCP server files. The 2.0.14 fix replaces execSync with execFileSync using argv arrays and shell:false, so each user value stays a discrete argv element that the shell cannot reinterpret. Per CPE cpe:2.3:a:ruvnet:agentic-flow, only the ruvnet agentic-flow product is affected.

Know when Agentic Flow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Untrusted content must reach the tool (UI:R) but no auth is required on the exposed sinks (PR:N); trivial injection (AC:L) yields full OS control (C/I/A:H) as the server user.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Jul 17, 2026 - 20:03 EUVD
CVE Published
Jul 17, 2026 - 18:47 cve.org
HIGH 8.8

DescriptionCVE.org

Agentic-Flow is an AI agent orchestration platform. Prior to 2.0.14, agentic-flow MCP server tools in src/mcp/standalone-stdio.ts, src/mcp/fastmcp/servers/claude-flow-sdk.ts, src/mcp/fastmcp/servers/stdio-full.ts, src/mcp/fastmcp/servers/http-streaming-updated.ts, src/mcp/fastmcp/servers/http-sse.ts, src/mcp/fastmcp/servers/poc-stdio.ts, src/mcp/fastmcp/tools/agent/{execute,list,parallel}.ts, src/mcp/fastmcp/tools/swarm/orchestrate.ts, and src/mcp/fastmcp/tools/hooks/pretrain.ts interpolated attacker-influenceable tool parameters such as agent, task, name, language, and agentdb directly into shell command strings passed to execSync(), allowing arbitrary OS command execution with the privileges of the MCP server user. This issue is fixed in version 2.0.14.

Executive ViewAI

Why It Matters

Agentic-Flow (npm: ruvnet/agentic-flow before 2.0.14), a widely-used AI agent orchestration platform, contains a high-severity command injection vulnerability with publicly available exploit code that allows unauthenticated attackers to execute arbitrary OS commands with server privileges. Organizations processing untrusted data through Agentic-Flow or exposing the platform to external networks face immediate risk of compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Compensating controls include: restrict HTTP/SSE interface access to trusted internal networks through network segmentation; run the MCP server with a dedicated least-privilege service account; enforce strict allowlisting validation on MCP tool parameters (agent, task, name, language, agentdb); sandbox MCP server processes where technically feasible; and implement monitoring to alert on unexpected process spawning or system commands from the MCP server process.

Threat Intelligence Overview

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Low
niche npm AI-orchestration package, limited enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy