Cloudflare Patches Workers AI KV Cache Leak in GLM-5.3 Model
Cloudflare resolved a critical KV cache exposure in Workers AI running GLM-5.3. A subtle SGLang bug leaked data across 155 user inference responses, highlighting multi-tenant AI risks.
Cloudflare has publicly detailed a security incident within its serverless Workers AI inference platform, disclosing that a configuration mismatch in its recently deployed GLM-5.3 model exposed key-value (KV) cache memory across unrelated user requests. While the anomaly was identified and neutralized quickly, the flaw resulted in cross-request data contamination affecting 155 individual responses, offering a sobering case study on the subtle architectural risks inherent to modern multi-tenant AI infrastructure.
The issue stems from the high-performance inference engine SGLang, an increasingly popular runtime designed to accelerate Large Language Model (LLM) serving. To eliminate redundant compute during prompt prefill, high-throughput engines deploy dynamic memory optimizations such as RadixAttention. This mechanism caches key-value tensors across common prefix prompts—such as system prompts or multi-turn conversational histories—in a tree structure, allowing subsequent requests to reuse identical token blocks directly from GPU VRAM.
According to an in-depth post-mortem published on the Cloudflare Blog, a subtle misalignment between GLM-5.3 model configurations and SGLang’s internal cache-tree indexing triggered the boundary breakdown. Under specific concurrent loads, the engine failed to properly validate memory boundaries, incorrectly treating distinct context buffers as identical prefixes. Consequently, the runtime attached allocated KV cache pages from prior queries to brand new incoming user streams, allowing subsequent generations to append or hallucinate tokens informed by another user’s prompt data.
Cloudflare’s telemetry alerted engineers to anomalous prefix-hit patterns shortly after rollout. The response team mitigated the vector by immediately disabling cross-request prefix caching on the GLM-5.3 fleet, forcing full recomputations for every inference call while an upstream patch was coordinated. Working alongside SGLang maintainers, developers pushed hardened validation logic ensuring that model metadata and token serialization boundaries are strictly verified before assigning any cached tree nodes.
Cloudflare verified that the blast radius was limited strictly to 155 responses over the exposure window, and the platform has since added automated canary validation to catch tensor pointer mismatches prior to deploying new model checkpoints. However, the breach highlights an emerging vulnerability category in modern generative AI. Over the last two years, hardware constraints have forced hosting providers to push tenant isolation deeper into the GPU memory hierarchy, replacing isolated virtual machines and containers with shared PagedAttention and Radix caches at the token level.
As enterprises increasingly delegate sensitive data to multi-tenant inference endpoints, this incident reinforces that aggressive GPU latency optimizations must be matched by formal verification and runtime memory sanitization. Without exhaustive multi-tenant fuzzing across every new checkpoint, the pursuit of marginal millisecond gains risks puncturing the privacy boundaries that enterprise AI adoption fundamentally relies upon.
Want real-time AI & tech intelligence dispatches?
Join the official TrendingTech Daily Telegram channel for breaking research, model launches, and market analysis.