{"vuln_id":"GHSA-h9f9-h6gm-wc85","aliases":["CVE-2026-55786"],"description":"flyto-core has Unauthenticated Command Execution via HTTP MCP `execute_module`","published_at":"2026-07-06T17:41:03Z","modified_at":"2026-11-19T23:12:51.599400Z","first_seen_at":"2026-11-21T19:15:50.895516Z","severity":"high","severity_source":"native","cvss_score":8.4,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-306","CWE-78"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-h9f9-h6gm-wc85"},"matched_alias":null,"items":[{"id":9325,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77312: Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, the earlier CVE-2026-67429 remediation applied validate_path_with_en…","summary":"Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, the earlier CVE-2026-67429 remediation applied validate_path_with_env_config() to only a hand-picked set of file-writing modules, leaving data.csv.write in src/core/modules/atomic/data/csv_write.py, data.json_to_csv in src/core/modules/atomic/data/json_to_csv.py, file.copy in src/core/modules/atomic/file/copy.py, and file.move in src/core/modules/atomic/file/move.py outside the FLYTO_SANDBOX_DIR confinement boundary. The advisory also identifies unguarded modules across the broader data.*, file.*, and report-writer families. data.csv.write relies on a .. substring denylist that does not reject absolute paths, while the other named modules accept caller-controlled output or destination paths without the canonical guard. A caller able to execute modules or recipes can therefore write attacker-controlled content outside the configured sandbox, potentially overwriting application code, recipes, startup files, scheduled-task files, or authorization files and gaining code execution on the host. This issue is fixed in version 2.26.8.\n\nReferences:\nhttps://github.com/advisories/GHSA-h9f9-h6gm-wc85\nhttps://github.com/flytohub/flyto-core/commit/bbb6f1cfec22fee1ea0e6ecf1129d7103c85e09f\nhttps://github.com/flytohub/flyto-core/releases/tag/v2.26.8\nhttps://github.com/flytohub/flyto-core/security/advisories/GHSA-p34x-fmph-9fjx","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77312","published_at":"2026-11-19T22:18:44.013000Z","updated_at":"2026-11-19T22:18:44.013000Z","fetched_at":"2026-11-21T19:15:31.484930Z","severity":"critical","cvss_score":10.0,"epss":0.00748,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77312","vuln_ids":["CVE-2026-55786","CVE-2026-67429","CVE-2026-77312","GHSA-2956-977X-2W3R","GHSA-H9F9-H6GM-WC85","GHSA-P34X-FMPH-9FJX"],"tags":["CWE-22"],"cluster_id":2106,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9325","html":"https://vulnwatch.ve1ve2.com/item/9325"}},{"id":10708,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-h9f9-h6gm-wc85: flyto-core has Unauthenticated Command Execution via HTTP MCP `execute_module`","summary":"flyto-core has Unauthenticated Command Execution via HTTP MCP `execute_module`\n\n## Unauthenticated Command Execution via HTTP MCP `execute_module`\n\n### Summary\n\nThe HTTP MCP endpoint (`POST /mcp`) in flyto-core accepts unauthenticated JSON-RPC `tools/call` requests and dispatches them to arbitrary registered modules, including `sandbox.execute_shell`, which passes attacker-controlled input directly to `asyncio.create_subprocess_shell`. An unauthenticated attacker can execute arbitrary OS commands as the flyto-core server process. By default the server binds to `127.0.0.1`, making this a High-severity local vulnerability (CVSS 8.4); if started with `--host 0.0.0.0`, it becomes remotely exploitable over the network. Dynamic reproduction confirmed command execution as `root` inside a Docker container without any `Authorization` header.\n\n### Details\n\nflyto-core exposes an HTTP API via FastAPI. When the API is started (`flyto serve`), the MCP router is unconditionally mounted at `/mcp` (`src/core/api/server.py:75-78`). The route handler at `src/core/api/routes/mcp.py:65-66` declares `@router.post(\"\")` with **no** `Depends(require_auth)` dependency, unlike the analogous REST execution routes (`src/core/api/routes/modules.py:93`) which enforce both authentication and a module denylist.\n\nThe complete unauthenticated data flow from source to sink:\n\n1. **`src/core/api/server.py:75-78`** — `mcp_router` is mounted under `/mcp` unconditionally at app creation.\n2. **`src/core/api/routes/mcp.py:65-66`** — `@router.post(\"\")` has no `Depends(require_auth)` guard; any HTTP client may POST to this route.\n3. **`src/core/api/routes/mcp.py:79`** — the full request body (attacker-controlled JSON) is parsed without validation.\n4. **`src/core/api/routes/mcp.py:103-104`** — each JSON-RPC item is forwarded to `handle_jsonrpc_request` without a `module_filter`.\n5. **`src/core/mcp_handler.py:813-838`** — `tools/call` with name `execute_module` forwards attacker-controlled `module_id` and `params` to `execute_module()`.\n6. **`src/core/mcp_handler.py:180`, `214-215`** — the module registry resolves `module_id` and invokes it with attacker-supplied `params`.\n7. **`src/core/modules/registry/decorators.py:96-101`** — the function wrapper exposes `self.params` as `context['params']`.\n8. **`src/core/modules/atomic/sandbox/execute_shell.py:137-139`** — `command` is read directly from `params` with no sanitization.\n9. **`src/core/modules/atomic/sandbox/execute_shell.py:163-169`** — `command` reaches `asyncio.create_subprocess_shell` with `shell=True` and no allowlist or escaping.\n\nThe `sandbox.execute_shell` module is not covered by the default denylist (`_DEFAULT_DENYLIST = [\"shell.*\", \"process.*\"]` at `src/core/api/security.py:126`), so even if `module_filter` were applied it would still be reachable.\n\n**Vulnerable code excerpts:**\n\n```python\n# src/core/api/routes/mcp.py:65-66  — missing auth\n@router.post(\"\")\nasync def mcp_post(request: Request):\n```\n\n```python\n# src/core/mcp_handler.py:832-838  — attacker-controlled dispatch\nelif tool_name == \"execute_module\"\n\nAffected: PyPI:flyto-core\n\nFixed in: 2.26.4\n\nReferences:\nhttps://github.com/flytohub/flyto-core/security/advisories/GHSA-h9f9-h6gm-wc85\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-55786\nhttps://github.com/flytohub/flyto-core/commit/db7f116b1d3c5dcf94aded00d14118f81f3e225e\nhttps://github.com/flytohub/flyto-core\nhttps://github.com/flytohub/flyto-core/releases/tag/v2.26.4\nhttps://github.com/pypa/advisory-database/tree/main/vulns/flyto-core/PYSEC-2026-2482.yaml","url":"https://osv.dev/vulnerability/GHSA-h9f9-h6gm-wc85","published_at":"2026-07-06T17:41:03Z","updated_at":"2026-11-19T23:12:51.599400Z","fetched_at":"2026-11-21T19:15:55.946120Z","severity":"high","cvss_score":8.4,"epss":0.0041,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"flyto-core","vuln_id":"CVE-2026-55786","vuln_ids":["CVE-2026-55786","GHSA-H9F9-H6GM-WC85","PYSEC-2026-2482"],"tags":["osv","pypi","fix-available"],"cluster_id":9592,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10708","html":"https://vulnwatch.ve1ve2.com/item/10708"}}]}