10.0critical
Ruflo: Unauthenticated RCE in MCP bridge default docker-compose deployment
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 36.4% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c4hm-4h84-2cf3
Description
Ruflo is an agent meta-harness for Claude Code and Codex. Prior to 3.16.3, ruflo's default docker-compose deployment exposed the MCP bridge POST /mcp and POST /mcp/:group endpoints without authentication, allowing an unauthenticated network attacker to invoke tools/call to terminal_execute, obtain a shell in the bridge container, read provider API keys, and poison AgentDB learning-store patterns. This issue is fixed in version 3.16.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ruvnet ruflo | < 3.16.3 | CVE List |
| ruflo (npm) | before 3.16.3 | GitHub Advisory Database |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Classification
What each source says
CVE List
Ruflo is an agent meta-harness for Claude Code and Codex. Prior to 3.16.3, ruflo's default docker-compose deployment exposed the MCP bridge POST /mcp and POST /mcp/:group endpoints without authentication, allowing an unauthenticated network attacker to invoke tools/call to terminal_execute, obtain a shell in the bridge container, read provider API keys, and poison AgentDB learning-store patterns. This issue is fixed in version 3.16.3.
GitHub Advisory Database
The MCP bridge shipping in ruflo/docker-compose.yml exposed POST /mcp with no authentication. The docker-compose defaults bound the bridge and MongoDB to all interfaces. Combined, an unauthenticated network attacker could invoke tools/call → terminal_execute inside the bridge container, obtain a shell as node (uid 1000), read every provider API key from the container env, spawn attacker-controlled swarms on the victim's keys, and persist a poisoned pattern into the AgentDB learning store that steers future AI outputs for all users of the instance.
The tool blocklist that mentions terminal_execute was enforced only in the autopilot flow. POST /mcp and POST /mcp/:group bypassed it.
Fixed in ADR-166 Phase 1-3 (branch security/adr-166-mcp-bridge-rce, PR #2521):
- Bind loopback by default; fail-closed on public-bind opt-in without MCP_AUTH_TOKEN
- Bearer auth middleware (timingSafeEqual constant-time compare)
- Server-side executeTool gate for terminal_execute (MCP_ENABLE_TERMINAL=true opt-in)
- MongoDB --auth on by default; MONGO_INITDB_ROOT_PASSWORD required to boot
- read_only container + tmpfs
- CORS allowlist wiring
- CI regression locks (static + runtime + compose defaults)
Operators of any exposed instance MUST:
- Firewall :3001 and :27017 immediately
- Rotate OPENAI / GOOGLE / OPENROUTER / ANTHROPIC keys
- Audit the AgentDB pattern store for injected agentdb_pattern-store entries; purge poisoned patterns. A patched redeploy alone does NOT undo poisoning.
- Audit MongoDB for tampering
Credit: Eli Ainhorn, Senior AI Vulnerability Researcher @ Noma Security
Reviewed by Dragan Spiridonov (ADR-166 co-author).
NVD (es)
Ruflo es un meta-arnés de agente para Claude Code y Codex. Antes de la 3.16.3, el despliegue predeterminado de docker-compose de ruflo expuso los puntos finales POST /mcp y POST /mcp/:group del puente MCP sin autenticación, permitiendo a un atacante de red no autenticado invocar herramientas/llamar a terminal_execute, obtener un shell en el contenedor del puente, leer claves API del proveedor y envenenar patrones del almacén de aprendizaje de AgentDB. Este problema está solucionado en la versión 3.16.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59726 changed 2026-07-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c4hm-4h84-2cf3 changed 2026-11-24 | CC-BY-4.0 |
| NVD | CVE-2026-59726 changed 2026-10-25 | Public domain |