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):
Operators of any exposed instance MUST:
Credit: Eli Ainhorn, Senior AI Vulnerability Researcher @ Noma Security
Reviewed by Dragan Spiridonov (ADR-166 co-author).
{
"cwe_ids": [
"CWE-306",
"CWE-78",
"CWE-942"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-24T21:01:10Z",
"nvd_published_at": "2026-07-09T18:16:57Z",
"severity": "CRITICAL"
}