News

LMCache v0.5.8: Security Fixes, One Multiprocess Architecture, and API Keys for ZMQ and gRPC

2026-12-01

LLMCache Team
General arrangement of LMCache v0.5.8, drawn as a blueline engineering sheet. On the left, an engine box labeled vLLM holds a box labeled LMCacheMPConnector. Two vermilion request lines, labeled ZMQ and gRPC · auto, run from the connector to two open ports on a double-outlined box labeled LMCache MP server. Inside the server, a tier labeled L1 is filled with vermilion dots and a tier labeled L2 with teal dots. A third open port on the server carries a line labeled HTTP API down to a box labeled dashboard. Under the dashboard, a note reads proxy: declared sockets only. One vertical rod threads three keys drawn with dashed bows, one beside each of the ZMQ, gRPC, and HTTP API ports, under the note API keys · optional · one set. On the right, a box labeled coordinator, with the note --host 127.0.0.1, connects to the server at an open port. A dashed-outline box labeled lmcache-nixl attaches to the server as a separate part. A dashed-outline box labeled LMCache_inprocess sits below the engine with no connection to anything. Small open triangles mark the six changes in v0.5.8: the dashboard proxy, the API keys, gRPC auto mode, the coordinator host, lmcache-nixl, and LMCache_inprocess. The title block reads LMCACHE, general arrangement, sheet 1, not to scale, revision 0.5.8.
In v0.5.8, the frontend proxy forwards only to declared Unix sockets, and LMCache runs only as a standalone MP server, which vLLM reaches through LMCacheMPConnector. The triangles mark what changed: the dashboard proxy; one optional key set for ZMQ, gRPC, and the HTTP API; gRPC server mode auto; a coordinator that listens on 127.0.0.1 by default; and lmcache-nixl and LMCache_inprocess as separate packages.

tl;dr

LMCache v0.5.8 fixes a critical vulnerability in the LMCache frontend, the web dashboard that monitors LMCache servers (GHSA-hhqh-8jpj-27rf). Before this release, anyone who could reach the frontend’s port could send requests through its proxy to any Unix socket on the host. Depending on the configuration, this could expose the process environment or let the caller run code. The release also fixes a moderate issue in multiprocess (MP) mode, where Low-Rank Adaptation (LoRA) adapters and the base model could read each other’s key-value (KV) cache (GHSA-jg4p-wprm-8hph).

0.5.8 – The details

The LMCache contributor team and community are pleased to announce LMCache v0.5.8, released on November 22, 2026. The project published both advisories on November 23. The release also completes the move to one architecture: LMCache now runs only as a standalone MP service, and the legacy in-process mode moves to a separate package. It adds optional API keys to the ZeroMQ (ZMQ) and gRPC request transports, and the coordinator now listens only on the local host by default.

Read the upgrade notes before you upgrade if you run the LMCache frontend, if you served several LoRA adapters with an L2 tier, if you use in-process mode, if your coordinator serves MP servers on other hosts, or if your server already uses an HTTP API key. Each of these cases needs an action or a change to your deployment.

Frontend proxy limited to declared Unix sockets

The frontend’s proxy route checked TCP targets against the list of registered nodes, but it passed any Unix socket path from the request directly to its transport, with no check. The frontend binds to 0.0.0.0 by default and, before v0.5.8, had no authentication on this route. A caller who could reach its port could send requests to any local Unix socket, choosing the method, path, headers, and body.

The advisory confirms two results through the proxy against the LMCache internal API server. Where that server was enabled, its /env endpoint returned the full process environment, including a test Hugging Face token. Where run_script_api_enabled was also set, the /run_script endpoint ran code. It rates the issue Critical, with a Common Vulnerability Scoring System (CVSS) score of 9.8. Versions v0.4.7 through v0.5.7.post1 are affected. A deployment that never starts the frontend is not affected.

Important: if you run the LMCache frontend, upgrade to v0.5.8 and configure a frontend API key.

In v0.5.8, the proxy forwards only to Unix sockets declared at startup with --nodes, --config, or the new --uds-allowlist flag (#6497). Any other socket path returns HTTP 403, with or without an API key. Paths are compared after symbolic links are resolved.

Two things have not changed:

  • Declared sockets stay reachable without authentication unless you configure a frontend API key (--api-key-file, LMCACHE_API_KEY, or LMCACHE_API_KEY_FILE, available since v0.5.7).
  • The frontend still binds to 0.0.0.0 by default, so pass --host to bind it to a private address.

LMCache community member Ali AlMousa reported the issue. Thank you.

LoRA adapters no longer share KV cache

In MP mode, the vLLM connector built cache keys from token IDs, cache_salt, and the model name only. The LoRA adapter was not part of the key, so requests with the same prompt prefix under different adapters, or under an adapter and the base model, could read each other’s KV cache. KV cache computed under a different adapter is wrong for the request and can change model output. On a shared engine, a user who can send requests under one adapter could store KV cache for a common prefix, and later requests under another adapter or the base model could load it. The advisory covers MP mode only.

The fix adds the adapter to the cache identity as the matching tag lmcache.tag.lora (#5713). The connector discards a tag of the same name that a client supplies. The advisory rates the issue Moderate, with a CVSS score of 5.3. Versions v0.4.5 through v0.5.7.post1 are affected.

Important: if you served several LoRA adapters with an L2 tier, clear that tier before you upgrade.

Entries stored before the fix carry no adapter tag, so v0.5.8 can still serve them to base-model requests. L2 tiers can keep these entries across engine restarts.

LMCache community member BoJiang03 reported the issue, and LMCache contributor 7konigsberg fixed it. Thank you.

In-process mode moves to its own package

The legacy in-process (IP) implementation is no longer in the lmcache package (#6254). LMCache now runs as a standalone MP service, and vLLM connects to it through LMCacheMPConnector.

This is the result of a planned and announced process:

Important: if you run LMCache in-process, stay on v0.5.7.post1 or move to MP mode before you upgrade.

If you stay on v0.5.7.post1, do not start the LMCache frontend, because that version is affected by GHSA-hhqh-8jpj-27rf.

The in-process code and its documentation are now in LMCache_inprocess. The package keeps the import path lmcache.inprocess and the vLLM adapter path that the vLLM connector imports.

The lmcache_inprocess package is a pre-release. The versions on the Python Package Index (PyPI), 0.1.0rc2 and 0.1.0rc3, do not support lmcache 0.5.8. The newer one, 0.1.0rc3, requires lmcache 0.5.9 or later. When a compatible release is available on PyPI, upgrade lmcache first and then install lmcache_inprocess. Installing lmcache_inprocess first does not work.

As before, the SGLang integration supports only MP mode. For an example of MP mode on other hardware, see LMCache x Ascend, part two.

Upgrade notes for operators

Check these items before you upgrade:

Table titled upgrade: before and after. It compares v0.5.7.post1 with v0.5.8 for a deployment that changes nothing, and gives what to do for each row. Coordinator --host: 0.0.0.0 before, 127.0.0.1 now; set --host to an address that remote MP servers can reach, and enable API keys first. --grpc-server-mode: sync before, auto now, which picks native or aio; pass --grpc-server-mode sync. --separate-object-groups, which affects hybrid models only: off before, on now; --no-separate-object-groups turns it off, but keep the default for Mamba and linear-attention hybrids. An existing HTTP API key: checked on HTTP only before, on HTTP, ZMQ, and gRPC now; set LMCACHE_API_KEY_FILE or LMCACHE_API_KEY on clients. Dashboard Unix sockets: any path with no check before, declared paths only now; add discovered paths with --uds-allowlist. The v0.5.8 column has a double outline and a small triangle in its header. The title block reads LMCACHE, upgrade: before and after, sheet 2, not to scale, revision 0.5.8.
If you upgrade to v0.5.8 and change nothing, these five behaviors change. The last column says what to do. The list below covers the other upgrade items.
  • If you run the LMCache frontend, upgrade, configure a frontend API key, and bind it to a private address with --host (GHSA-hhqh-8jpj-27rf). If it discovers socket nodes through --node-supplier-url, add those paths with --uds-allowlist.
  • If you served several LoRA adapters with an L2 tier, clear that tier before you upgrade (GHSA-jg4p-wprm-8hph).
  • If you use in-process mode, stay on v0.5.7.post1 or move to MP mode. If you stay on v0.5.7.post1, do not start the LMCache frontend.
  • If your server already has an API key for its HTTP API (--api-key-file, LMCACHE_API_KEY, LMCACHE_API_KEY_FILE, or the older LMCACHE_HTTP_API_KEY names), v0.5.8 also requires that key on ZMQ and gRPC requests. Before you upgrade, set LMCACHE_API_KEY_FILE or LMCACHE_API_KEY for vLLM and other clients.
  • The coordinator --host default is now 127.0.0.1 (it was 0.0.0.0). If your coordinator serves MP servers on other hosts, start it with an explicit --host (#6606, #6609). Coordinators that the LMCache Kubernetes operator deploys already pass --host 0.0.0.0. The coordinator also rejects a registered instance address that includes a scheme, port, or path (#6534).
  • The native NIXL connector is now the separate lmcache-nixl package, at the same version as lmcache, and pip install "lmcache[nixl]" installs it (#5400). To add it to an existing installation, pin the installed version, for example pip install "lmcache[nixl]==0.5.8". The adapter refuses a mismatched lmcache-nixl and prints that command.
  • The gRPC server mode default is now auto (it was sync) (#6754). It selects native when pygrpc-native is installed, and aio when it is not. The peer-to-peer (P2P) listener makes the same selection. Explicit modes do not change. To keep the old behavior, pass --grpc-server-mode sync.
  • --separate-object-groups is enabled by default (#6041). For hybrid models, each cross-chunk attention window type has its own object group. To use one group, pass --no-separate-object-groups. Keep the default for Mamba and linear-attention hybrids, because they require it. Models that are not hybrid are not affected.
  • If an L2 adapter uses the aesgcm serializer-deserializer (serde), objects that earlier versions encrypted fail to load one time after the upgrade and are recomputed (#6601).
  • This release has no MUSA wheel.

Optional API keys for request transports

The ZMQ transport (#5769) and the sync, aio, and native gRPC servers (#5770, #6439) can now check an API key on each request. Before this release, only the HTTP services had this check.

The request transport documentation says: “Authentication stays disabled when the server has no keys, preserving existing deployments.” To enable it, give the server keys with --api-key-file (you can repeat it), LMCACHE_API_KEY_FILE, or LMCACHE_API_KEY. The server combines keys from all sources into one set, so you can rotate keys. Clients, including vLLM, read LMCACHE_API_KEY_FILE or LMCACHE_API_KEY. One set of keys covers the HTTP API and both transports, so a server that already has an HTTP key now also checks it on ZMQ and gRPC.

On gRPC, the server checks the key before it deserializes the request. A missing or wrong key returns UNAUTHENTICATED.

On ZMQ, the client sends the credential in a new versioned frame. Older servers cannot read this frame, and older clients cannot connect to a server that requires keys. The documentation advises: “Upgrade the deployment before enabling keys.”

API keys do not encrypt request traffic. ZMQ sends the token in clear text, and the default gRPC channel is not encrypted. Keep these transports on a trusted network, or use an encrypted tunnel.

Coordinator binds to the local host by default

The coordinator now listens on 127.0.0.1 by default (#6606), so only clients on the same machine can connect to it. To serve MP servers on other hosts, start it with --host set to an address that they can reach, and enable API keys before you expose it. The default port is still 9300.

The coordinator also accepts an instance address only as an IPv4 address, IPv6 address, or host name, with nothing added (#6534). A registration that includes a scheme, port, or path now fails with HTTP 422. For more about the coordinator, see The LMCache coordinator: a control plane for fleet-wide KV cache.

Encrypted L2 objects are bound to their cache keys

With the opt-in aesgcm serde (Advanced Encryption Standard in Galois/Counter Mode, or AES-GCM), each encrypted object is now bound to the cache key that it was stored under (#6601). An encrypted object that is found under a different key now fails to load and is recomputed.

Hardware and software in this release

Hardware

PlatformWhat is new or improvedPRs
CUDAFile descriptor (fd) based sharing of regions mapped with virtual memory management (VMM); automatic detection of VMM KV allocation; vLLM sleep mode with VMM-shared KV caches; faster copies for head-major (HND) KV layouts with one KV head#6266, #6499, #6358, #6299
ROCmVMM KV cache inter-process communication (IPC) through rocm.bindings; opt-in --rocm-host-event-wait (off by default); hipify guard fix; v0.5.8 wheels for gfx942 and gfx950 on GitHub Releases (ROCm 7.2 with PyTorch 2.13, and ROCm 7.2.4 with PyTorch 2.10)#6626, #6212, #5035
XPUSmaller wheel: the extensions no longer need or bundle the compiler runtime, and debug information is removed#6281
AscendPadded per-layer (K, V) tuples for pooled layouts in vLLM-Ascend v0.30; per-plane layout in shape descriptors#6241, #6215
MUSANative CacheGen codec; IPC handles sent as plain data (no wheel for this release)#5865, #6283
RBLNNightly rbln-serve validation; wheel on GitHub Releases#6157
RDMA and memoryRemote direct memory access (RDMA) writes in the transfer channel; shared Device-DAX (device direct access) regions#6401, #6121

Engines, storage, and platforms

PlatformWhat is new or improvedPRs
vLLMNew KVCacheGroup support; kv_cache_access on LMCacheMPConnector; LoRA cache-key isolation; Kimi K3.1 state for Kimi Delta Attention (KDA) layers; faster packed prompt-token handling#6608, #6487, #5713, #6318, #6503
SGLangHealth check; retry of earlier failed stores; store-progress reset after recovery; native SGLang image builds#6319, #6404, #6659, #6658, #6814
Valkeyvalkey_rdma L2 adapter; valkey_rdma workers spread across several RDMA interfaces (rdma_interface); blob-tcp transport; username and password authentication fixed for the GLIDE client#5556, #6293, #6400, #5917
3FS (HF3FS)shard_dirs to spread stores across directories; key-buffer miss confirmation and stale-entry handling#6261, #6002, #6344
AerospikeEnvironment variable fallbacks for L2 settings#6264
NIXLSeparate lmcache-nixl package; scratch-file cleanup#5400, #6369
Kubernetes and llm-dllm-d integration guide and manifests; Kubernetes example for a CPU-only server#6520, #6627, #5981
ModelsGLM-5.3-Flash recipe#6372

For more about the Valkey work, see Valkey in LMCache: a fast shared memory fabric. For the llm-d guide, see LMCache with llm-d. For vLLM version guidance, see vLLM and LMCache compatibility.

Builds and images

Install or upgrade from PyPI:

pip install -U lmcache

To add the NIXL connector:

pip install "lmcache[nixl]"

All four images are on Docker Hub for amd64 and arm64. The full lmcache/vllm-openai:v0.5.8, lmcache/standalone, and lmcache/sglang images use CUDA 13.0. The latest tags now point to the v0.5.8 images.

docker pull lmcache/vllm-openai:v0.5.8
docker pull lmcache/vllm-openai:v0.5.8-lightweight
docker pull lmcache/sglang:v0.5.8
docker pull lmcache/standalone:v0.5.8

The lmcache/vllm-openai:v0.5.8 and lmcache/standalone images include pygrpc-native, so their gRPC server uses native mode by default. The lmcache/vllm-openai:v0.5.8 image also includes lmcache-nixl. The lightweight image includes neither, so its gRPC server uses aio mode by default.

Wheels for ROCm, XPU, and RBLN are on their own GitHub Releases pages, not on PyPI: v0.5.8-rocm, v0.5.8-rocm-torch210, v0.5.8-xpu, and v0.5.8-rbln. This release has no MUSA wheel. The latest MUSA wheel is for v0.5.7.post1.

The PyTorch 2.14.0 builds and the removal of CUDA 12.9 (cu129) wheels and images came in v0.5.7.post1 (#6465, #6533). See the v0.5.7.post1 post for those changes.

Other changes

  • New P2P data paths, including opt-in writes to the memory of peers (--enable-p2p-write, #6532). An engine pinned to a model revision no longer shares KV cache with other revisions (#6267).
  • One stalled ZMQ client or malformed message no longer blocks other clients (#6256, #4934).
  • The engine no longer crashes when a gRPC transfer fails or the ZMQ server rejects a request (#6275, #6331).
  • Slow L2 writes no longer block all of L1 (#5863). gRPC clients now ignore http_proxy, https_proxy, and grpc_proxy and connect directly (#6278).
  • KV cache that is replicated across a tensor-parallel (TP) group is stored one time per group (#6125), and the final partial prompt chunk is now saved (#5886).
  • Early work toward multiple chunk sizes (#6765, #6719) and token dropping (#5871, #5875, #6365).

The v0.5.8 release notes list every change, and the full changelog compares v0.5.8 with v0.5.7.post1. Documentation is at docs.lmcache.ai.

Thank you, new contributors

This release includes work from 29 new contributors. Thank you, and welcome to the LMCache community.

Table of Contents

Share via:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from the blog