Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
10.0

CVE-2026-59726: ruflo Docker deployment lets remote attackers run code

CVE-2026-59726 · published 8 days ago
Summary

The ruflo Docker setup exposes a management interface that anyone on the network can reach, allowing them to execute commands inside the container and steal API keys. This can be stopped by restricting network access, enabling authentication, and requiring a database password. Organizations should immediately block the related ports, change all AI service keys, and check for any malicious entries that may have been added to the system.

What to do
  • Update ruflo to version 3.16.3.
Affected software
Ecosystem VendorProductAffected versions
– ruvnet ruflo < 3.16.3
npm – ruflo < 3.16.3
Fix: upgrade to 3.16.3
Original advisory text
ruflo MCP bridge allows unauthenticated remote code execution in default Docker Compose deployments
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:
1. Firewall :3001 and :27017 immediately
2. Rotate OPENAI / GOOGLE / OPENROUTER / ANTHROPIC keys
3. Audit the AgentDB pattern store for injected agentdb_pattern-store entries; purge poisoned patterns. A patched redeploy alone does NOT undo poisoning.
4. Audit MongoDB for tampering

Credit: [Eli Ainhorn](https://www.linkedin.com/in/eli-ainhorn), Senior AI Vulnerability Researcher @ [Noma Security](https://noma.security)

Reviewed by Dragan Spiridonov (ADR-166 co-author).
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker full control
Severity
10.0 Critical
Exploitation
36% chance of attack within 30 days
Type
CWE-78OS Command Injection
CWE-306Missing Authentication for Critical Function
CWE-942Permissive Cross-domain Security Policy with Untrusted Domains
Timeline
Published24 Nov 2026
Updated2 Dec 2026
First seen9 Jul 2026
Sources
CVE-2026-59726 · MITRE
Track software like this
Free during beta