Skip to content
Beveiligingsnieuws

Ruflo MCP flaw: unauthenticated remote command execution

Ruflo MCP-flaw

Researchers have disclosed a maximum-severity vulnerability in Ruflo, an open-source agent orchestration platform used to coordinate multi-agent workflows for models such as Anthropic Claude Code and OpenAI Codex. The Ruflo MCP flaw is tracked as CVE-2026-59726 with a CVSS score of 10.0, and it can lead to unauthenticated remote command execution in vulnerable deployments.

Because the issue sits at the boundary between Ruflo’s Model Context Protocol (MCP) bridge and network exposure, the risk is not limited to theoretical misuse. When the bridge is reachable from outside and deployed with the vulnerable configuration defaults, an attacker can leverage it as a launchpad for deeper compromise, including credential theft and tampering with stored AI memory.

What is Ruflo and why the MCP bridge matters

Ruflo (originally launched as Claude Flow) is a multi-agent orchestration and harness framework. It enables users to deploy coordinated agent swarms, automate autonomous workflows, and build conversational AI systems that rely on persistent state.

A key component in this architecture is the MCP bridge, which exposes a set of tools to the model ecosystem via network-accessible endpoints. In the affected versions, the MCP bridge can expose a broad tool surface without requiring an authenticated caller.

The core of the Ruflo MCP flaw (CVE-2026-59726)

The vulnerability is rooted in how Ruflo exposes 233 tools—including shell command execution, database operations, agent management, and memory storage—through an MCP bridge that is open to the network by default.

Researchers point to the default docker-compose.yml configuration as a central factor. In vulnerable setups, port 3001 is bound to 0.0.0.0 by default, which makes the MCP bridge reachable on all network interfaces. While real-world exposure depends on firewall rules, security groups, and network segmentation, the report emphasizes that any instance reachable over the network is fully exploitable without authentication.

In short: when an attacker can reach the MCP bridge endpoints, a single crafted request can trigger tool invocation—and from there, command execution.

How exploitation works: unauthenticated tool invocation

According to the researchers’ description, an attacker can send an unauthenticated HTTP POST to the MCP endpoint on the exposed port to invoke tools. The report includes an example request pattern that calls:

  • tools/call on the MCP bridge
  • followed by execution via a tool named ruflo__terminal_execute

This chain allows remote attackers to run commands inside the bridge container. Once command execution is possible, the attacker can move from “proof of access” to actions that impact secrets, stored data, and long-term model behavior.

What attackers can do after command execution

The consequences described in the disclosure go well beyond running a simple command. With the initial foothold established via command execution, the attacker may be able to:

  • Steal API keys used by Ruflo to communicate with large language model providers.
  • Read user conversations stored on the platform.
  • Poison persistent AI memory so future responses are influenced.
  • Weaponize agents using the stolen credentials and spawn attacker-controlled swarms.
  • Persist a malicious payload by writing to the /app directory.

This is why the vulnerability is treated as a stepping stone to full compromise: command execution enables the attacker to reach both operational secrets and the platform’s ongoing learning or memory mechanisms.

Affected versions and impact scope

The flaw affects all versions of the project before version 3.16.3. The disclosure references the official tracking entry as CVE-2026-59726 (CVSS 10.0), and notes that vulnerable behavior appears in the default deployment configuration prior to the fixed release.

For operators, the practical question becomes whether their environment exposes the MCP bridge on the network. If the bridge endpoints are reachable, the vulnerability can be exploited without any login or prior access.

Why persistent AI memory makes remediation urgent

Unlike classic server-only breaches, this case highlights the risk of long-lived AI manipulation. The researchers explain that the attacker’s access can include writing malicious patterns into the platform’s persistent memory or learning store (referred to in the disclosure as AgentDB learning-store patterns).

That means the effects of the attack can continue after the attacker’s initial access window ends. Even if the system is later patched, the compromised memory contents may still steer model outputs for future users.

From a security perspective, this shifts the response from “patch and restart” to a more comprehensive recovery process that includes auditing and rebuilding trusted state.

The fix: what changed after responsible disclosure

The report states that the issue was disclosed responsibly on June 30, 2026. It also notes that the maintainer pushed a fix within 24 hours, implemented in the project’s updates.

Key mitigations described include:

  • Binding the MCP bridge to loopback by default instead of exposing it on all interfaces.
  • Gating the terminal execution capability behind server-side controls (executeTool-style authorization checks).
  • Enabling MongoDB authentication to help prevent conversation theft.
  • Adjusting docker-compose defaults so sensitive components are not broadly exposed.

These changes directly address the conditions that made unauthenticated exploitation feasible in the first place.

Recommended actions for operators

If you run Ruflo in a way that could make the MCP bridge reachable from the network, treat this as an urgent incident. The disclosure includes practical guidance that aligns with the threat model described:

  • Close firewall ports 3001 and 27017 where applicable, especially for external access.
  • Rotate all LLM API keys because credentials may have been exposed.
  • Audit the AgentDB pattern store (including entries that resemble agentdb_pattern-store items) for injected content.
  • Check MongoDB for signs of tampering and validate that authentication and access controls are correctly enforced.

Finally, the report emphasizes that remediation should not rely solely on updating software. If the AI memory or stored patterns were altered, you may need to rebuild the trusted environment and restore clean state from a known-good baseline.

Operational security lessons from the Ruflo MCP flaw

This disclosure underscores a broader security theme: orchestration layers that expose tool execution and memory persistence must be hardened like high-value administration interfaces.

In practice, the most effective defenses combine multiple layers. Network exposure controls (firewalling and binding addresses) limit who can reach the MCP bridge, while server-side authorization prevents unauthenticated tool invocation. On top of that, credential rotation and memory auditing reduce the long-term impact of any successful intrusion.

Conclusion

The Ruflo MCP flaw (CVE-2026-59726) demonstrates how a single misconfiguration in a network-exposed tool bridge can turn into remote command execution—and then into deeper compromise. Because the attack path can reach API keys, conversations, and persistent AI memory, organizations should act quickly: update to a fixed version, restrict network access, rotate credentials, and audit or rebuild compromised memory and data stores.

Source: https://thehackernews.com/2026/07/ruflo-mcp-flaw-lets-unauthenticated.html