The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). From 1.8.0 until 1.30.0 and 2.2.0, stateful Streamable HTTP servers, including FastMCP, MCPServer, Server.streamable_http_app(), and StreamableHTTPSessionManager, retain session entries without an idle expiration or aggregate session-count limit. DELETE, refused opening requests, and completed sessions do not reliably discard their entries, and each entry can retain parsed initialize parameters. A client that can reach the endpoint can therefore create ordinary short requests that grow server memory without bound until restart. Stateless HTTP, stdio, and SSE transports are not affected. This issue is fixed in versions 1.30.0 and 2.2.0.
The product does not properly control the allocation and maintenance of a limited resource.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Exploit Intelligence 3.1 | RedHat | exploit-intelligence/vulnerability-analysis-rhel9:1794542867 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-cpu-rhel9:1793444554 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-rocm-rhel9:1793444456 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-spyre-rhel9:1793444409 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-gaudi-rhel9:1793444510 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-cuda-rhel9:1793444600 | * |
| Red Hat Ansible Automation Platform 2.6 | RedHat | ansible-automation-platform-26/lightspeed-chatbot-rhel9:1794598901 | * |
| Red Hat Ansible Automation Platform 2.6 | RedHat | ansible-automation-platform-26/mcp-tools-rhel9:1794593730 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/disk-image-cuda-rhel9:1793995863 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-aws-cuda-rhel9:1793973314 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-azure-cuda-rhel9:1793973314 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-azure-rocm-rhel9:1793973314 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-cuda-rhel9:1793914518 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-gcp-cuda-rhel9:1793973312 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-rocm-rhel9:1793914504 | * |
| Red Hat Migration Toolkit for Applications 8.3 | RedHat | mta/mta-solution-server-rhel9:1795207317 | * |
| Red Hat OpenShift AI 2.25 | RedHat | rhoai/odh-llama-stack-core-rhel9:1794492228 | * |
| Red Hat OpenShift AI 3.4 | RedHat | rhoai/odh-kserve-router-rhel9:1792688864 | * |
| Red Hat OpenShift AI 3.5 | RedHat | rhoai/odh-kserve-storage-initializer-rhel9:1793691340 | * |
| Red Hat OpenShift AI 3.5 | RedHat | rhoai/odh-ogx-core-rhel9:1793383222 | * |
| Red Hat OpenShift AI 3.5 | RedHat | rhoai/odh-th-torch-cuda-py312-rhel9:1793715343 | * |
| Red Hat OpenShift AI 3.5 | RedHat | rhoai/odh-trustyai-garak-lls-provider-dsp-rhel9:1793497091 | * |
| Red Hat Satellite 6.18 | RedHat | satellite/foreman-mcp-server-rhel9:1793272276 | * |
| Red Hat Satellite 6.19 | RedHat | satellite/foreman-mcp-server-rhel9:1793272279 | * |
Mitigation of resource exhaustion attacks requires that the target system either:
The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.
The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.