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
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. …
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, 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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| rmcp | crates.io | >= 3.0.0, < 3.6.0 | 3.6.0 |
- HightsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS@tsparticles/mcp-server
- HighMissing request-wide media budget allows single-request frontend resource exhaustionvllm
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighvLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)vllm
- HighUnbounded session retention in the Streamable HTTP transport allows an initialize flood DoSio.modelcontextprotocol.sdk:mcp-core
- HighMCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation@modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighRMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discoveryrmcp
- HighRMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-servicermcp
- Highrmcp Streamable HTTP server transport has a DNS rebinding vulnerabilityrmcp
- MediumUnbounded response-body buffering in rmcp Streamable HTTP clients allows memory exhaustionrmcp
- MediumOAuth authorization-server metadata SSRF filter checks host strings, not resolved addresses (incomplete fix of GHSA-c9xm-49cp-xcr9)rmcp
- Mediumrmcp OAuth client fetches server-controlled resource_metadata URLsrmcp
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.