Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach unauthenticated LMDeploy API server
-
DeliveryPOST /distserve/p2p_connect with attacker zmq_address
-
ExploitEngine PULL socket connects to attacker endpoint
-
Executionrecv_pyobj() runs pickle.loads() on payload
-
PersistArbitrary code executes in engine process
-
ImpactFull host/model compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target run LMDeploy's disaggregated (P2P) serving mode - the vulnerable handle_zmq_recv receive loop only starts once the migration backend accepts a connection, so single-node/non-disaggregated deployments are not affected. It also requires the OpenAI-compatible API server to be started WITHOUT api_keys (the default is None), leaving /distserve/p2p_initialize and /distserve/p2p_connect unauthenticated; if api_keys is set, the attacker must possess a valid key. Given those conditions, no further prerequisites apply - the CVSS is AV:N/AC:L/PR:N/UI:N, so a remote unauthenticated attacker who can reach the endpoint can supply a caller-controlled zmq_address and trigger pickle deserialization. Limiting factors that reduce real-world exposure: the non-default disaggregated-serving requirement, network reachability of the API server and ZMQ ports, and whether api_keys authentication has been enabled. |
| Impact | This is a genuine high-priority issue rather than an inflated CVSS score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H/VA:H, base 9.3) is consistent with the described attack: network-reachable, no authentication in the default deployment, no user interaction, and full compromise of the engine process via arbitrary code execution. The one meaningful mitigating factor not captured in the base score is a deployment prerequisite: disaggregated serving must be enabled, because the receive loop only starts after the migration backend accepts a connection - so standard single-node deployments are not exposed. There is no EPSS value provided and no CISA KEV listing, so exploitation-probability signals are absent; the deserialization pattern is well understood and trivially weaponizable once reachable, so absence of a published POC should not be read as low real-world risk. Any operator running LMDeploy with disaggregated serving exposed on a network without api_keys should treat this as urgent and patch immediately. Note the conflict to verify: CVSS implies unauthenticated network exploitation of defaults, but exploitation actually requires the non-default disaggregated-serving mode to be active - defenders should confirm their deployment mode before ranking this against other network-vector RCEs. |
| Exploit ScenarioDerived | An attacker who can reach an internet- or LAN-exposed LMDeploy API server running disaggregated serving without api_keys sends a POST to /distserve/p2p_connect with a request body whose remote_engine_endpoint_info.zmq_address points at a ZMQ endpoint the attacker controls. The victim engine connects its PULL socket and calls recv_pyobj() on the attacker-supplied bytes, and a crafted pickle payload executes arbitrary code in the engine process. No public POC is identified at time of analysis, but the pattern is straightforward to weaponize given the low complexity (AC:L) and lack of authentication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Unauthenticated remote code execution in InternLM LMDeploy (versions 0.9.2 through 0.15.x) allows a remote attacker to execute arbitrary code inside an inference engine process when disaggregated (P2P) serving is enabled. The disaggregation peer-connector deserializes attacker-influenced ZMQ messages with Python pickle before any type validation, and the /distserve/p2p_initialize and /distserve/p2p_connect endpoints require no authentication in the default configuration (api_keys=None). Reported by VulnCheck with a vendor advisory and a public patch; no public exploit or CISA KEV listing identified at time of analysis, though the code path and fix are publicly documented on GitHub.
RemediationAI
Vendor-released patch: upgrade to LMDeploy v0.16.0 or later, which replaces the pickle-based recv_pyobj()/send_pyobj() wire format with JSON plus Pydantic schema validation (commit f05b4ad8bf2e2d84101a1d63b3c44fadd99223b2; release https://github.com/InternLM/lmdeploy/releases/tag/v0.16.0). If you cannot upgrade immediately, apply these specific compensating controls: set api_keys on the API server so the /distserve/p2p_initialize and /distserve/p2p_connect endpoints require authentication (they are unauthenticated when api_keys defaults to None) - trade-off is that all API clients must now present keys; disable disaggregated serving if not required, which fully removes the attack surface since the ZMQ receive loop never starts - trade-off is losing prefill/decode disaggregation performance; and restrict network access to the API server and the disaggregation ZMQ ports to trusted hosts only (firewall/segment them off the internet), so an attacker cannot direct the engine to pull from an endpoint they control. Refer to the VulnCheck advisory and GitHub issue #4804 for details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LMDeploy is InternLM's LLM inference and serving toolkit; the affected component is its PyTorch-backend disaggregated-serving feature, which splits prefill and decode across engines that exchange cache/session messages over ZeroMQ. The root cause is CWE-502 (Deserialization of Untrusted Data): handle_zmq_recv in lmdeploy/pytorch/disagg/conn/engine_conn.py calls recv_pyobj(), which internally runs pickle.loads() on the received bytes, and the isinstance check against DistServeCacheFreeRequest happens only after the object has already been reconstructed - meaning malicious pickle payloads execute during deserialization, before validation can reject them. Because p2p_connect connects a ZMQ PULL socket to remote_engine_endpoint_info.zmq_address taken directly from the caller-supplied request body, the attacker controls which endpoint the engine pulls (and therefore unpickles) bytes from. The vendor fix (commit f05b4ad, v0.16.0) replaces send_pyobj/recv_pyobj with JSON on the wire (send_json/recv_json plus Pydantic model_validate), eliminating the pickle code-execution path. Affected product per CPE: cpe:2.3:a:internlm:lmdeploy.
Know when Lmdeploy gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote, unauthenticated, low-complexity pickle RCE in default (no api_keys) config yields PR:N/AC:L/AV:N; arbitrary code execution in the engine gives full C:H/I:H/A:H, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
LMDeploy deserializes disaggregated-serving peer messages with pickle. The handle_zmq_recv coroutine in lmdeploy/pytorch/disagg/conn/engine_conn.py reads peer-to-peer cache-free requests with recv_pyobj(), which deserializes the received bytes with pickle.loads(), and the isinstance check against DistServeCacheFreeRequest runs only after deserialization has already completed. The peer that supplies those bytes is caller-controlled: p2p_connect passes remote_engine_endpoint_info.zmq_address from the request body to connect() on the ZMQ PULL socket, and the POST /distserve/p2p_initialize and /distserve/p2p_connect endpoints in lmdeploy/serve/openai/api_server.py apply no authentication unless the server is started with api_keys, which defaults to None. A remote attacker can direct an engine to pull from a ZMQ endpoint under their control and execute arbitrary code in the engine process. Deployments that do not enable disaggregated serving are not affected, because the receive loop is only started once the migration backend accepts the connection.
Executive ViewAI
InternLM LMDeploy versions 0.9.2 through 0.15.x are vulnerable to unauthenticated remote code execution when P2P disaggregated serving is enabled, allowing attackers to execute arbitrary code directly in the inference engine without credentials. Any organization deploying these versions to run AI models in production is at immediate risk of infrastructure compromise, model theft, and service disruption. Leadership should treat this as a critical vulnerability requiring immediate patching.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in InternLM LMDeploy versions 0.9.1 through 0.10.1 allows unauthenticated network attackers to run
Server-Side Request Forgery (SSRF) in InternLM LMDeploy's vision-language module allows remote unauthenticated attackers
Unauthenticated remote code execution in InternLM LMDeploy versions 0.9.0 through 0.18.0 lets remote attackers run arbit
Arbitrary code execution in InternLM LMDeploy 0.11 and earlier: the toolkit calls torch.load() without weights_only=True
A vulnerability was found in InternLM LMDeploy up to 0.7.1. Rated medium severity (CVSS 4.8), this vulnerability is low
A vulnerability was found in InternLM LMDeploy up to 0.7.1. Rated medium severity (CVSS 4.8), this vulnerability is low
Denial of service in InternLM LMDeploy through 0.17.0 lets unauthenticated remote attackers crash the distributed infere
Memory exhaustion in InternLM LMDeploy through 0.17.0 can be triggered by unauthenticated remote attackers who send repe
Server-side request forgery in InternLM lmdeploy's OpenAI-compatible vision API server lets unauthenticated remote attac
Server-side request forgery in LMDeploy 0.12.3 through 0.14.x lets remote unauthenticated clients steer the server's mul
EUVD-2026-62972
GHSA-q66m-3fcg-jjh7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB