Cyber Security News

Critical Ruflo MCP Bridge Flaw Lets Attackers Execute Arbitrary Commands and Hijack AI Agents

A critical security flaw in the open-source AI orchestration platform Ruflo has been disclosed, allowing unauthenticated attackers to execute arbitrary commands and fully compromise AI agent environments.

Assigned a maximum CVSS base score of 10.0, the vulnerability (tracked as CVE-2026-59726) was discovered by Noma Labs and affects Ruflo’s Model Context Protocol (MCP) Bridge, a core component responsible for handling tool execution across agentic workflows.

Critical Ruflo MCP Bridge Vulnerability

Ruflo is a rapidly growing AI orchestration platform with over 67,000 GitHub stars and an estimated 1 million active users.

It is widely used to deploy agentic AI swarms, manage persistent vector memory, and enable real-world tool execution via MCP. However, its powerful architecture introduces severe security risks when improperly configured.

The MCP Bridge, implemented as an Express.js server, exposes 233 distinct tools over HTTP, including capabilities for shell execution, database interaction, and agent lifecycle management. Researchers found that this interface lacked any authentication controls by default.

The vulnerability stems from the MCP Bridge being publicly accessible on port 3001, often bound to 0.0.0.0 in default Docker container deployments.

Ruflo Architecture (Image Source: Noma Security.com)

As detailed in the Noma Security research, a single crafted HTTP POST request to the /mcp endpoint can trigger arbitrary command execution inside the container without requiring API keys, tokens, or session validation. By invoking the ruflo__terminal_execute tool, attackers gain immediate shell execution context.

Similar exposures highlight the importance of implementing robust api security tools across containerized environments.

Because Ruflo operates as a “meta-harness” for orchestrating multi-agent AI swarms, the MCP Bridge functions as its central control plane. Every agent action, memory operation, and tool invocation passes through this component.

Exploiting this trust boundary enables attackers to move laterally across the entire orchestration layer:

  • Credential Exfiltration: Attackers can dump process environment variables to steal API keys for major LLM providers, including OpenAI, Anthropic, and Google Gemini.
  • AI Swarm Hijacking: Stolen credentials can be weaponized to spawn unauthorized or malicious agent swarms using the host’s compute resources.
  • Memory Poisoning: Attackers can inject malicious patterns into AgentDB (Ruflo’s persistent memory), permanently corrupting future AI reasoning and outputs without user knowledge.
  • Database Compromise: Unauthenticated internal MongoDB instances (running on port 27017) can be queried directly to extract full conversation histories, prompts, and metadata.
Exploitation StageTarget MechanismImpact & Threat Vector
Initial FootholdUnauthenticated /mcp endpointRemote command execution via ruflo__terminal_execute
Credential TheftProcess environment variablesExfiltration of provider API keys (OpenAI, Anthropic, Google)
Persistence & PoisoningAgentDB & Container StorageInjecting malicious memory states and persistent startup scripts
Data ExfiltrationUnauthenticated MongoDB (27017)Extraction of user chats, system prompts, and operational metadata

These escalation vectors closely mirror risks observed in API connection vulnerability scenarios where unauthenticated management endpoints break infrastructure isolation.

This flaw underscores the systemic risks associated with “Shadow AI” deployments, where high-privilege AI orchestration suites are deployed rapidly without formal security oversight.

Ruflo’s ease of deployment via Docker and its deep integration with host system resources make it attractive for rapid prototyping, but dangerous when exposed to untrusted networks.

Following responsible disclosure on June 30, 2026, the Ruflo development team responded rapidly, releasing a security patch (tracked under GHSA-c4hm-4h84-2cf3).

  1. Enforced Authentication: Strict token-based authentication required for all MCP endpoints.
  2. Localhost Binding: Restricted MCP Bridge exposure to localhost (127.0.0.1) by default.
  3. Disabled Terminal Tool: Terminal execution (ruflo__terminal_execute) disabled unless explicitly enabled by an administrator.
  4. Database Security: Enforced mandatory authentication for underlying MongoDB instances.
  5. Container Hardening: Implemented read-only container file systems and strict CORS restrictions.

Security teams should review deployment models for securing enterprise APIs, immediately restrict access to ports 3001 and 27017, rotate all provider API keys, and audit persistent AI memory stores for unauthorized modifications.

“Exploiting the MCP Bridge converts the central AI control plane into an attacker foothold, enabling secret exfiltration, agent swarm hijacking, and persistent memory poisoning.”

 Strengthen Your SOC by Accelerating Threat Detection & Rapid Investigations. -> Integrate ANY.RUN With Your SOC Now.

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

4 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

6 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago