CVE-2026-137657 in LMDeploy
Summary
by MITRE • 11/26/2026
InternLM LMDeploy 0.9.0 through 0.18.0 contains an unbounded resource allocation vulnerability in the DistServe proxy /distserve/connection_warmup endpoint that allows unauthenticated attackers to exhaust memory. While a prefill/decode connection is pending, for example after registering a slow node via /nodes/add, repeated warmup requests spawn unbounded wait_for_conn() tasks and sockets until the proxy process is killed.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/26/2026
The vulnerability identified in InternLM LMDeploy versions 0.9.0 through 0.18.0 represents a critical unbounded resource allocation flaw within the DistServe component, specifically targeting the /distserve/connection_warmup endpoint. This issue stems from an improper handling of concurrent connection requests during the initialization phase of distributed inference services. The core technical deficiency lies in the lack of rate limiting or concurrency controls for warmup operations, which are designed to pre-allocate resources and establish connections for incoming model serving tasks. When a node is registered via the /nodes/add endpoint, it signals the system that new computational capacity is available. However, if an attacker sends repeated connection warmup requests while a previous prefill or decode connection remains pending, the proxy fails to manage these overlapping operations effectively. Instead of queuing or rejecting excess requests based on current load, the system spawns unbounded wait_for_conn() tasks and opens corresponding network sockets for each incoming request. This behavior creates a linear accumulation of resource consumption relative to the number of malicious requests sent within a short timeframe.
From an operational perspective, this vulnerability enables a straightforward denial-of-service attack against large language model inference clusters. Since LMDeploy is often deployed in production environments serving high-throughput AI applications, the exhaustion of system memory can lead to catastrophic service failure. As the proxy process accumulates thousands or millions of pending tasks and open sockets due to uncontrolled spawning, it eventually consumes all available RAM on the host machine. This resource starvation forces the operating system's out-of-memory killer to terminate the LMDeploy process, resulting in a complete outage for any clients relying on that specific node for inference services. The attack is particularly dangerous because it requires no authentication, allowing unauthenticated actors on the network to trigger this state simply by sending HTTP requests to the exposed endpoint. This aligns with CWE-400, which classifies such issues as Uncontrolled Resource Consumption, and maps directly to MITRE ATT&CK technique T1498, Network Denial of Service, specifically under the sub-category of resource exhaustion via application layer attacks.
The severity of this flaw is amplified by its potential impact on distributed systems where multiple nodes coordinate for model serving. If one node becomes unresponsive due to memory exhaustion, it can disrupt the load balancing logic and cause cascading failures across other healthy nodes in the cluster. Furthermore, because the vulnerability involves socket management, there may be secondary implications related to file descriptor limits or network stack saturation on the host operating system, although the primary vector is clearly memory consumption through task spawning. The lack of authentication for this endpoint suggests a misconfiguration where internal service endpoints were exposed without adequate access controls, violating the principle of least privilege and proper API gateway security practices.
To mitigate this vulnerability, immediate patching to LMDeploy version 0.18.1 or later is required, as these versions include fixes that enforce concurrency limits on warmup requests. In environments where upgrading is not immediately feasible, network-level mitigations should be implemented. Deploying a Web Application Firewall or API gateway in front of the DistServe proxy can help by rate-limiting requests to the /distserve/connection_warmup endpoint and restricting access to trusted internal IP ranges only. Additionally, configuring operating system limits on file descriptors and memory usage per process can provide a buffer against total system collapse, though this is not a substitute for fixing the underlying application logic. Security teams should also audit their network segmentation strategies to ensure that sensitive inference endpoints are not directly accessible from untrusted networks, thereby reducing the attack surface available to potential adversaries seeking to disrupt AI service availability.