GHSA-XV3R-8WJC-26Q5
Unauthenticated clients can overwrite reusable KV cache entries
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 0.5.7.post1 | lmcache · -6 d desde divulgación | |
| Divulgación | Publicada | GHSA-XV3R-8WJC-26Q5 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
LMCache 0.5.5 in-process lmcache_server accepts cache operations without authenticating clients. A reachable client that can derive a target CacheEngineKey can overwrite KV data later reused by another request, changing model output without changing the victim prompt.
Details
The reference in-process server exposes EXIST, GET, and PUT without client authentication. CacheEngineKey contains model, world size, worker ID, token-chunk hash, and dtype, but no authenticated client identity or client-specific secret. The load path does not verify that stored KV data originated from the request associated with the key. A client that can reach the server and reconstruct a target key can therefore replace the stored KV state. The affected deployment mode is the legacy in-process mode. Resolution: upgrade to MP mode.
Proof of concept
On LMCache 0.5.5, start lmcache_server on a test-only loopback port and populate a cache entry through a normal inference request. From a separate unauthenticated process, reconstruct the CacheEngineKey from the prompt tokens and model configuration. EXIST returns true, and the same interface permits GET and PUT. Separately, replace the KV bytes stored under prompt A’s key with KV data produced for prompt B. A later request using prompt A then produces the output associated with prompt B. The reporter reproduced this with vLLM 0.28.0 and 0.30.0 using LMCacheConnectorV1.
Impact
An attacker must be able to reach lmcache_server and derive the target cache key. In deployments shared by mutually untrusted clients, the attacker can discover, retrieve, or replace a target cache entry. A later cache hit can consume attacker-supplied KV state and change the victim request’s model output. Upgrade to MP mode to remove this legacy in-process server path.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypilmcache |
Corregida | 0.5.7.post1 | -6 d | 0.5.7.post1 no afectada |
0.5.7.post10.5.7Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/LMCache/LMCache/security/advisories/GHSA-xv3r-8wjc-26q5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
