Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
InfrastructureInsight · On RadarHacker News AI→ original

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
Cloudflare: a cache bug leaked other users' data into 155 GLM-5.3 responses on long prompts
Source: Hacker News AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHacker News AI ↗
Editor-in-Chief
Key metric #1The model was taken offline 40 minutes after the incident was announced
Key metric #2Cloudflare found no evidence of deliberate exploitation
Other Workers AI models are not affectedtheir cache is larger than their context window

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.

Story

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.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

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.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Cloudflare: a cache bug leaked other users' data into 155 GLM-5.3 responses on long prompts https://news.hamidun.com/en/news/17541/cloudflare-a-cache-bug-leaked-other-users-data-into-155-glm

What do you think?
Loading comments…