# CVE-2026-58195: Agentic-Flow: OS Command Injection in agentic-flow MCP server tools via unsanitized tool-parameter interpolation into execSync

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T15:12:58.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-vcv2-r9jh-99m5
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ruvnet agentic-flow: < 2.0.14
- agentic-flow (npm): before 2.0.14

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/ruvnet/agentic-flow/security/advisories/GHSA-vcv2-r9jh-99m5> (exploit, web)
- <https://github.com/ruvnet/agentic-flow/issues/169> (web)
- <https://github.com/ruvnet/ruflo/issues/2414> (web)
- <https://github.com/ruvnet/agentic-flow/pull/170> (web)
- <https://github.com/ruvnet/ruflo/pull/2415> (web)
- <https://github.com/ruvnet/agentic-flow/commit/0c2ec967736a8b6b85832c6bae2a3e74989705ec>
- <https://github.com/ruvnet/ruflo/releases/tag/v3.12.4> (web)
- <https://github.com/ruvnet/agentic-flow> (package)
- <https://www.npmjs.com/package/agentic-flow/v/2.0.14> (web)

## Sources

- CVE List: [CVE-2026-58195](https://www.cve.org/CVERecord?id=CVE-2026-58195), CVE Terms of Use, modified 2026-07-17
- GitHub Advisory Database: [GHSA-vcv2-r9jh-99m5](https://github.com/advisories/GHSA-vcv2-r9jh-99m5), CC-BY-4.0, modified 2026-07-19
- NVD: [CVE-2026-58195](https://nvd.nist.gov/vuln/detail/CVE-2026-58195), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-58195 · Whole record: https://cve.day/CVE-2026-58195.json · Rebuilt by cve.day 2026-11-25T22:59:28.514Z
