LMDeploy has Remote Code Execution by Pickle Deserialization via handle_zmq_recv in lmdeploy/lmdeploy/pytorch/disagg/conn/engine_conn.py
## Summary LMDeploy's PyTorch DistServe/PD-disaggregation control plane used `recv_pyobj()` to deserialize messages received through a ZeroMQ PULL socket. PyZMQ implements `recv_pyobj()` using Python pickle deserialization, which can execute arbitrary code while reconstructing an object. The peer address used by the receiver was supplied through the `POST /distserve/p2p_connect` HTTP endpoint. An attacker who could reach an affected DistServe API server could cause the server to connect to an attacker-controlled ZeroMQ endpoint and deserialize a crafted pickle payload. API-key authentication is not enabled unless the operator explicitly configures it. As a result, affected DistServe deployments without API keys allowed unauthenticated remote code execution with the privileges of the LMDeploy serving process. This issue affects the PyTorch backend when PD-disaggregation/DistServe is enabled. Ordinary deployments that do not use the affected disaggregated-serving path do not expose this data flow. ## Affected components - HTTP entry point: `lmdeploy/serve/openai/endpoints/distserve.py`, `POST /distserve/p2p_connect` - Attacker-controlled peer address: `DistServeConnectionRequest.remote_engine_endpoint_info.zmq_address` - Vulnerable receiver: `lmdeploy/pytorch/disagg/conn/engine_conn.py`, `EngineP2PConnection.handle_zmq_recv()` - Unsafe operation: `recv_pyobj()`, which performs pickle deserialization ## Vulnerable data flow 1. A caller submits a DistServe P2P connection request
GHSA-2vh9-42vm-xmv2
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-2vh9-42vm-xmv2
lmdeploy
Source reference: /affected/0/package/name
- Affected versions
- 0.10.0
Source reference:
/affected/0/versions0.10.1Source reference:
/affected/0/versions0.10.2Source reference:
/affected/0/versions0.11.0Source reference:
/affected/0/versions0.11.1Source reference:
/affected/0/versions0.12.0Source reference:
/affected/0/versions0.12.1Source reference:
/affected/0/versions0.12.2Source reference:
/affected/0/versions0.12.3Source reference:
/affected/0/versions0.13.0Source reference:
/affected/0/versions0.14.0Source reference:
/affected/0/versions0.15.0Source reference:
/affected/0/versions0.9.2Source reference:
/affected/0/versions0.9.2.post1Source reference:
/affected/0/versions - Fixed versions
- 0.16.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.9.2"
},
{
"fixed": "0.16.0"
}
]
}
],
"package": {
"name": "lmdeploy",
"purl": "pkg:pypi/lmdeploy",
"ecosystem": "PyPI"
},
"versions": [
"0.10.0",
"0.10.1",
"0.10.2",
"0.11.0",
"0.11.1",
"0.12.0",
"0.12.1",
"0.12.2",
"0.12.3",
"0.13.0",
"0.14.0",
"0.15.0",
"0.9.2",
"0.9.2.post1"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-2vh9-42vm-xmv2/GHSA-2vh9-42vm-xmv2.json"
}
}
]- Related CVEs
- CVE-2025-66455
Source reference:
/aliases
Publisher severity
critical
Source reference: /database_specific/severity
- Event
- #62539 · Revision 1
- Added to Heist Feed
- Publisher date