UTC
High

Unauthenticated unbounded tool_schemas cache growth in rmcp Streamable HTTP server transport leads to remote denial-of-service

GHSA-4432-vg92-fqh6 · published 2026-10-20

Severity
High
CVSS score
7.5
Chance of exploitation (EPSS)
No CVE
Fixed in
3.6.0
What it is

StreamableHttpService cached the result of ServerHandler::get_tool in a process-wide map keyed by the params.name of incoming tools/call requests. The map had no size limit and no eviction, and it cached unknown names too. A client that could reach the endpoint could send tools/call requests with distinct tool names, each up to the 4 MiB default body limit, and grow server memory until the process ran out of memory. The entry was inserted during SEP-2243 header validation, before the request could be rejected, so requests answered with HTTP 400 still added an entry. …

What to do

Upgrade rmcp to 3.6.0 or later.

Fixed in 3.6.0 by #1349. The transport no longer caches tool schemas. It calls ServerHandler::get_tool on each request.

If you cannot upgrade yet

If you cannot upgrade, put authentication in front of the endpoint, or reject tools/call requests for unknown tool names before they reach StreamableHttpService. Lowering max_request_body_bytes reduces how fast memory grows but does not stop it.

Affected
PackageRegistryAffectedFixed in
rmcpcrates.io>= 3.0.0, < 3.6.03.6.0

The impact, patch and workaround text comes from the advisory, shortened (published by the MCP Rust SDK project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by the MCP reference servers project (https://github.com/modelcontextprotocol/servers/security/advisories); advisories published by the MCP Inspector project (https://github.com/modelcontextprotocol/inspector/security/advisories); advisories published by the MCP TypeScript SDK project (https://github.com/modelcontextprotocol/typescript-sdk/security/advisories); advisories published by the MCP Go SDK project (https://github.com/modelcontextprotocol/go-sdk/security/advisories); advisories published by the MCP Java SDK project (https://github.com/modelcontextprotocol/java-sdk/security/advisories); advisories published by the MCP Kotlin SDK project (https://github.com/modelcontextprotocol/kotlin-sdk/security/advisories); advisories published by the MCP Rust SDK project (https://github.com/modelcontextprotocol/rust-sdk/security/advisories); advisories published by the MCP Ruby SDK project (https://github.com/modelcontextprotocol/ruby-sdk/security/advisories); advisories published by the MCP C# SDK project (https://github.com/modelcontextprotocol/csharp-sdk/security/advisories); advisories published by the MCP PHP SDK project (https://github.com/modelcontextprotocol/php-sdk/security/advisories); advisories published by the MCP Registry project (https://github.com/modelcontextprotocol/registry/security/advisories); advisories published by Open Terminal (https://github.com/open-webui/open-terminal/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-12-06. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].