Cloudflare: a cache bug leaked other users' data into 155 GLM-5.3 responses on long prompts
Cloudflare has acknowledged a cross-customer leak: between August 27 and September 9, the GLM-5.3 model on Workers AI mixed fragments of other users' requests into 155 responses. The cause is the KV cache, the GPU memory where a model stores text it has already processed. For prompts longer than 681,280 tokens, the cache did not fit, and instead of returning an error, SGLang sent back stale data from other sessions. If you host models yourself on SGLang, check that your KV pool size matches your context length and upgrade to v0.5.22.
AI-processed from Hacker News AI; edited by Hamidun News
Imagine sending a long contract to a neural network and getting back a piece of someone else's correspondence. That is what the cross-customer leak in Cloudflare Workers AI looked like. From August 27 to September 9, 2026, the GLM-5.3 model mixed other users' data into 155 responses, and all of those responses were to prompts longer than 681,280 tokens. Together with the SGLang team, the maintainers of the open-source inference engine that powers the service, Cloudflare published a detailed post-mortem. For anyone who hosts models themselves, it works as a ready-made checklist.
What happened
On September 8, researcher Gadi Evron reported through the HackerOne program that very long prompts to GLM-5.3 sometimes returned text from other users' sessions. The next morning, Cloudflare reproduced the problem: its security engineers triggered the leak from two independent accounts within 25 minutes. The model was taken offline within 40 minutes of the incident announcement and that same day was brought back with a corrected configuration and an engine patch.
The vulnerability had existed since the model launched. Cloudflare excluded its own tests and the researcher's tests. The remaining requests, in timing and volume, looked like ordinary long-context usage rather than attempts to re-exploit the bug. The company found no evidence of a deliberate attack. Other Workers AI models are not affected: their KV cache is larger than their context length.
How it works: two errors in a row
The first error was in configuration. GLM-5.3 was launched with a context window of 1,048,576 tokens. But the KV cache, the GPU memory where the model keeps intermediate state for text it has already read, on the prefill nodes held only 681,280 tokens. SGLang chooses the cache size itself, based on the memory left after the weights are loaded, and nothing forces it to match the advertised context. Cloudflare knew about the mismatch but assumed the engine would return an error for a prompt that was too long. Pre-launch tests checked only HTTP status codes and speed, not whether the responses actually made sense. Every response came back with code 200, so the problem went unnoticed.
The second error was a bug in SGLang, in a mode where prompt processing (prefill) and response generation (decode) run on different groups of GPUs. A request that was too long was marked as rejected, and its text was replaced with a placeholder of a single token. But the request was not aborted. Prefill processed the placeholder, passed one cache page to decode, and reported that the transfer was complete.
By then, the decode node had already reserved, say, 8 pages and assumed all of them had been overwritten with the new request's data. In fact, only the first page was new. The other seven still held whatever previous requests had left behind: other users' prompts and fragments of their responses. The model read those pages during generation. The client received a coherent response with code 200 instead of a 400 error, and noticeably faster than processing eight pages should take.
Cache pages are not zeroed between requests. This is standard practice for the sake of speed, but it means the engine alone is responsible for tracking which request owns each page. Cloudflare describes this case as part of a broader class of KV-cache memory safety bugs that it has been working on for several months: a page is freed, reused, or read while someone else still has a claim to it.
What was fixed, and what you should do
Cloudflare made three changes. First, it aligned the GLM-5.3 configuration with the GLM-5.
2 settings. This freed memory, and the pool now holds about 2.04 million tokens, roughly double the context.
A valid request no longer reaches the rejection path. Second, it added a patch to the engine: a rejected request now terminates at the entrance to the queue, with the original error, before any cache transfers happen. Third, it applied additional safeguards to all of its SGLang deployments.
These include checking that the number of transferred tokens matches the reserved count, checksums on transfers, and deferred page freeing, which is now enabled by default. Before the model was brought back, the fixes were verified with the researcher's script and with Cloudflare's own tests using canary markers.
The patch shipped in SGLang v0.5.20, with follow-up work in v0.5.21 and v0.5.22. The company recommends that all operators upgrade to v0.5.22 or later. Notably, another SGLang user had already reported this issue on July 6, and Cloudflare had reported similar bugs going back to v0.5.10.
Practical takeaways for anyone who hosts models themselves:
- Check the KV pool size against the context length after any change to quantization, parallelism, CUDA graph sizes, or model version. If the pool is smaller, reduce the context.
- Do not assume the engine will return an error for input that does not fit.
- Check not only response codes but also the content of responses to long contexts, for example with canary markers.
- Verify pool size against context using metrics from the running engine, not indirect signals.
The key limitation: the fixes reduce the risk but do not eliminate it entirely. Some measures are still in progress together with the SGLang maintainers, and cache pages are still not zeroed when freed, for the sake of speed.
- Oct 12, 2026vLLM Teaches Decode Nodes to Send KV Cache Back, Cutting TTFT by Up to 3.3x
- Oct 28, 2026Cloudflare Launches Auto Router: It Picks the Model So Employees Don't Have To, Saving Up to 30%
- Nov 25, 2026Cloudflare Turns On Search for AI Agents on Any Site With One Toggle
- Apr 30, 2026DeepSeek, Google and Meta: 10 Ways to Compress the LLM KV Cache and Cut Inference Memory
Key Questions Answered
What happened?
On September 8, researcher Gadi Evron reported through the HackerOne program that very long prompts to GLM-5.3 sometimes returned text from other users' sessions. The next morning, Cloudflare reproduced the problem: its security engineers triggered the leak from two independent accounts within 25 minutes. The model was taken offline within 40 minutes of the incident announcement and that same day was brought back with a corrected configuration and an engine patch.
How it works: two errors in a row?
The first error was in configuration. GLM-5.3 was launched with a context window of 1,048,576 tokens. But the KV cache, the GPU memory where the model keeps intermediate state for text it has already read, on the prefill nodes held only 681,280 tokens. SGLang chooses the cache size itself, based on the memory left after the weights are loaded, and nothing forces it to match the advertised context. Cloudflare knew about the mismatch but assumed the engine would return an error for a prompt that was too long.
What was fixed, and what you should do?
Cloudflare made three changes. First, it aligned the GLM-5.3 configuration with the GLM-5.2 settings. This freed memory, and the pool now holds about 2.04 million tokens, roughly double the context. A valid request no longer reaches the rejection path. Second, it added a patch to the engine: a rejected request now terminates at the entrance to the queue, with the original error, before any cache transfers happen. Third, it applied additional safeguards to all of its SGLang deployments.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
