
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, orLMCACHE_API_KEY_FILE, available since v0.5.7). - The frontend still binds to
0.0.0.0by default, so pass--hostto 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:
- The LMCache documentation has marked in-process mode as deprecated for several releases
- LMCache 2026 Q4 roadmap first item
- The v0.5.7.post1 post listed the removal as for the 0.5.8 release
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:

- 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 olderLMCACHE_HTTP_API_KEYnames), v0.5.8 also requires that key on ZMQ and gRPC requests. Before you upgrade, setLMCACHE_API_KEY_FILEorLMCACHE_API_KEYfor vLLM and other clients. - The coordinator
--hostdefault is now127.0.0.1(it was0.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 examplepip 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 wassync) (#6754). It selectsnativewhen pygrpc-native is installed, andaiowhen 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-groupsis 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
aesgcmserializer-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
| Platform | What is new or improved | PRs |
|---|---|---|
| CUDA | File 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 |
| ROCm | VMM 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 |
| XPU | Smaller wheel: the extensions no longer need or bundle the compiler runtime, and debug information is removed | #6281 |
| Ascend | Padded per-layer (K, V) tuples for pooled layouts in vLLM-Ascend v0.30; per-plane layout in shape descriptors | #6241, #6215 |
| MUSA | Native CacheGen codec; IPC handles sent as plain data (no wheel for this release) | #5865, #6283 |
| RBLN | Nightly rbln-serve validation; wheel on GitHub Releases | #6157 |
| RDMA and memory | Remote direct memory access (RDMA) writes in the transfer channel; shared Device-DAX (device direct access) regions | #6401, #6121 |
Engines, storage, and platforms
| Platform | What is new or improved | PRs |
|---|---|---|
| vLLM | New 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 |
| SGLang | Health check; retry of earlier failed stores; store-progress reset after recovery; native SGLang image builds | #6319, #6404, #6659, #6658, #6814 |
| Valkey | valkey_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 |
| Aerospike | Environment variable fallbacks for L2 settings | #6264 |
| NIXL | Separate lmcache-nixl package; scratch-file cleanup | #5400, #6369 |
| Kubernetes and llm-d | llm-d integration guide and manifests; Kubernetes example for a CPU-only server | #6520, #6627, #5981 |
| Models | GLM-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.8docker pull lmcache/vllm-openai:v0.5.8-lightweightdocker pull lmcache/sglang:v0.5.8docker 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, andgrpc_proxyand 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.