ruflo MCP bridge: unauthenticated RCE in default Docker Compose deployments (CVE-2026-59726)
Severity: critical · Patch status: patched · Since 2026-11-24 · CVE-2026-59726
ruflo versions before 3.16.3 ship a default Docker Compose deployment whose MCP bridge exposes POST /mcp without authentication and binds the bridge and MongoDB to all interfaces. An unauthenticated network attacker can invoke tools/call → terminalexecute, obtain a shell as node (uid 1000), read provider API keys from container environment variables, spawn attacker-controlled swarms on victim keys, and persist a poisoned pattern in the AgentDB learning store that steers future AI outputs for all instance users. The terminalexecute blocklist applied only to the autopilot flow; POST /mcp and /mcp/:group bypassed it. ADR-166 Phase 1-3 fixes this in 3.16.3 with loopback binding, bearer auth, server-side executeTool gating, MongoDB auth, read-only containers, and CORS allowlisting. A patched redeploy does not remove prior poisoning.
What to do
- Immediately firewall TCP 3001 (MCP bridge) and 27017 (MongoDB) on any exposed ruflo instance.
- Rotate OPENAI, GOOGLE, OPENROUTER, and ANTHROPIC API keys used by the instance.
- Audit the AgentDB pattern store for injected agentdb_pattern-store entries and purge poisoned patterns; patching alone does not undo poisoning.
- Audit MongoDB for tampering and unauthorized access.
- Upgrade ruflo to 3.16.3 or later and verify loopback binding, MCP_AUTH_TOKEN bearer auth, MCP_ENABLE_TERMINAL disabled unless required, MongoDB --auth with required root password, read-only container/tmpfs, and CORS allowlist.
- Review logs for tools/call terminal_execute and unexpected swarm activity.
Fixed versions
Sources
All live incidents on Threat Watch