CVE-2025-59953

LMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploy

Published Sep 16, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
LMDeploy is a toolkit for compressing, deploying, and serving large language models. Starting in version 0.9.1 and prior to version 0.10.2, the LMdeploy implements an rpc server (AsyncRPCServer in zmq_rpc.py) for supporting the RPC communications. In its core functionality call_and_response(), I found it will directly use the pickles.loads() to deserialize the received messages without any sanitization, hence resulting in a remote code execution vulnerability by this RPC server. Version 0.10.2 contains a patch.

Analysis

AI-generated

Technical impact

The privilege‑elevating flaw stems from the LMdeploy RPC server's use of Python's pickle.loads without any sanitization, allowing an attacker to send crafted serialized data that is executed on the server. This vulnerability can enable full remote code execution on systems that expose the RPC service, compromising confidentiality, integrity, and availability of the entire deployment.

Affected Systems

InternLM lmdeploy, versions 0.9.1 up to and including 0.10.1 are affected, while version 0.10.2 and later contain the fix.

Risk and Exploitability

The CVSS score of 9.8 marks it as critical; the EPSS score of less than 1% indicates a low current exploitation probability, and it is not yet listed in the CISA KEV catalog. The attack vector is likely remote, via the RPC interface exposed by the service, and an attacker only needs the ability to send a crafted payload to the RPC endpoint to trigger the vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update lmdeploy to version 0.10.2 or later to apply the patch.
  • If an update is not immediately possible, disable the RPC server or restrict its network exposure to trusted hosts only.
  • Replace or wrap any use of pickle.loads with a safe deserialization mechanism or validate input before deserialization to prevent arbitrary code execution.

Generated by OpenCVE AI on September 18, 2026 at 00:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5h8j-6crg-7rmw LMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploy
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Internlm
Internlm lmdeploy
Vendors & Products Internlm
Internlm lmdeploy
Type Values Removed Values Added
Description LMDeploy is a toolkit for compressing, deploying, and serving large language models. Starting in version 0.9.1 and prior to version 0.10.2, the LMdeploy implements an rpc server (AsyncRPCServer in zmq_rpc.py) for supporting the RPC communications. In its core functionality call_and_response(), I found it will directly use the pickles.loads() to deserialize the received messages without any sanitization, hence resulting in a remote code execution vulnerability by this RPC server. Version 0.10.2 contains a patch.
Title LMdeploy has Remote Code Execution by Pickle Deserialization via zmq_rpc.call_and_response() in InterLM/lmdeploy
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 18, 2026, 6:05 PM
Reserved
Sep 23, 2025, 2:33 PM
Status
Deferred
Published
Sep 16, 2026, 4:17 PM
Modified
Oct 14, 2026, 7:10 PM