Skip to content
Heist/ feed
Back to feed
Critical

LMDeploy Remote Code Execution via Unsafe Pickle Deserialization in the Disaggregated Serving Peer Connector

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-76850
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:12 UTC · Revision 1

Source evidence

LMDeploy Remote Code Execution via Unsafe Pickle Deserialization in the Disaggregated Serving Peer Connector

core-osv · Original source

Published 19 Aug 2026, 21:41 UTC

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.

osv:CVE-2026-76850
Complete source record
{
  "id": "d6aba71b4ffc1a37a4105dc7dd5d2405c9b26455d54873d0fbf1ad35d853aa5d",
  "url": "https://osv.dev/vulnerability/CVE-2026-76850",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "LMDeploy Remote Code Execution via Unsafe Pickle Deserialization in the Disaggregated Serving Peer Connector",
    "summary": "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.",
    "evidence": "osv:CVE-2026-76850",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-76850",
      "aliases": [
        "CVE-2026-76850"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/internlm/lmdeploy",
              "type": "GIT",
              "events": [
                {
                  "introduced": "9098ae8c1abf35fdf81fb279d466c12766973aa7"
                },
                {
                  "fixed": "1208bf006bbac69f1f012ceafeeeb70f623b632c"
                },
                {
                  "fixed": "f05b4ad8bf2e2d84101a1d63b3c44fadd99223b2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.9.2"
                      },
                      {
                        "fixed": "0.16.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f05b4ad8bf2e2d84101a1d63b3c44fadd99223b2"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1208bf006bbac69f1f012ceafeeeb70f623b632c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.16.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.14.0",
            "v0.15.0",
            "0.14.0a2",
            "v0.13.0",
            "v0.12.3",
            "v0.12.2",
            "v0.12.1",
            "v0.12.0",
            "v0.11.1",
            "v0.11.0",
            "v0.10.2",
            "v0.10.1",
            "v0.10.0",
            "v0.9.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76850.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.172020871Z",
      "provider": "osv",
      "references": [
        "https://pypi.org",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76850.json",
        "https://github.com/InternLM/lmdeploy/releases/tag/v0.16.0",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-76850",
        "https://www.vulncheck.com/advisories/lmdeploy-remote-code-execution-via-unsafe-pickle-deserialization-in-the-disaggregated-serving-peer-connector",
        "https://github.com/InternLM/lmdeploy/issues/4804",
        "https://github.com/InternLM/lmdeploy/commit/f05b4ad8bf2e2d84101a1d63b3c44fadd99223b2",
        "https://github.com/InternLM/lmdeploy",
        "https://github.com/InternLM/lmdeploy/blob/v0.15.0/lmdeploy/pytorch/disagg/conn/engine_conn.py#L61",
        "https://github.com/InternLM/lmdeploy/blob/v0.15.0/lmdeploy/pytorch/disagg/conn/engine_conn.py#L79"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76850.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-76850",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497184,
  "published_at": "2026-08-19T21:41:28.068+00:00"
}