CVE-2025-59953: LMdeploy remote code execution via pickle deserialization in zmq_rpc

CVE-2025-59953 · Severity: critical · CVSS 9.8 · Published 2026-09-16

LMdeploy is a framework for deploying large language models that includes an RPC server for inter-process communication. The RPC server deserializes untrusted network messages using Python's pickle module without validation, allowing attackers to execute arbitrary code on machines running the service. Prior to version 0.10.2, the RPC server was exposed on the network interface; even after the fix that binds to localhost, local processes can still be exploited.

Technologies: lmdeploy (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-59953 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-59953 being exploited in the wild.
How severe is CVE-2025-59953?
Critical severity, with a CVSS score of 9.8, published 16 September 2026.
Which products and versions are affected?
lmdeploy (PyPI) >= 0.9.1, < 0.10.2, ECOSYSTEM:introduced=0.9.1,fixed=0.10.2.
Is there a fix for CVE-2025-59953?
Yes. lmdeploy (PyPI): upgrade to 0.10.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2025-59953 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2025-59953?
Check whether you run lmdeploy (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • lmdeploy (PyPI): upgrade to 0.10.2 or later
    pip install "lmdeploy>=0.10.2"

Technical details

The vulnerability is an unsafe deserialization flaw in AsyncRPCServer's call_and_response() method in zmq_rpc.py. The server deserializes ZMQ RPC messages directly using pickle.loads() without any input validation or whitelist controls. In versions 0.9.1–0.10.1, the RPC server bound to tcp://* on a network interface with a randomized port, allowing any network-reachable attacker to craft a malicious pickle payload and trigger remote code execution. An attacker can enumerate ports or brute-force the RPC endpoint, send a crafted pickle object that executes shell commands during deserialization, and gain full command-line access. Version 0.10.2 mitigates the remote network attack surface by binding to localhost only, but the underlying pickle deserialization vulnerability remains and can be exploited by untrusted local processes.

Affected products

  • InterLM LMdeploy 0.9.1 to 0.10.1

Identifiers

  • CVE-2025-59953
  • GHSA-5h8j-6crg-7rmw
  • PYSEC-2026-4079

Timeline

  • 2025-09-16: disclosed: GHSA-5h8j-6crg-7rmw published
  • 2025-10-02: patched: Version 0.10.2 released; RPC server binding changed from tcp://* to localhost

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.