Cloudflare discloses AI inference bug that put other customers' data in 155 responses

Cloudflare says that between August 27 and September 9, 2026, a small number of Workers AI customers using the GLM-5.3 model received responses containing data from other customers' requests. The cause was a configuration error combined with a bug in the open-source inference engine SGLang; both hav

Paylaş
Cloudflare discloses AI inference bug that put other customers' data in 155 responses

Cloudflare has disclosed a security incident in Workers AI, its cloud service for running AI models, in a report published on October 26. According to the company, between August 27 and September 9, 2026, a small number of customers using the GLM-5.3 model on Workers AI received responses that contained data from other customers' requests made to the same model shortly before theirs. Cloudflare counts 155 affected responses, all to prompts longer than 681,280 tokens. GLM-5.3 is a text model from Z.ai built for agentic coding work and is one of the models offered on Workers AI.

After excluding its own testing and the reporting researcher's, Cloudflare says the remaining requests match ordinary long-context use in timing and volume, and it found no evidence of deliberate exploitation. The company also says it confirmed that no other Workers AI model was affected. The report does not give the number of affected customers beyond "a small number", and it does not describe how those customers were notified.

The KV cache and the two causes

When a language model reads a prompt, it computes intermediate values for every token. These results, called keys and values, are kept in GPU memory so the model does not have to reprocess the whole text while it writes the answer. That memory is the KV cache. As Cloudflare describes it, the cache is a shared pool of fixed-size pages. Each request gets pages when it is admitted and releases them when it finishes. Pages are not zeroed between requests; the next request simply writes over them. The company says this is common practice for performance, but it leaves the inference engine responsible for tracking which page belongs to which request.

Cloudflare runs GLM-5.3 with the open-source inference engine SGLang in a split setup, where one group of GPUs processes the prompt (prefill) and another generates the response (decode). The prefill side builds the KV cache and sends it over the network to the decode side. According to the company, the incident came from two overlapping problems. The first was a configuration error: the model was served with a 1,048,576-token context window, but the KV pool on the prefill GPUs only had room for 681,280 tokens. Cloudflare writes that it knew about the mismatch before launch and assumed the engine would return an error for any prompt that did not fit. Its long-context tests returned successful responses, so the problem went unnoticed. The company acknowledges that those tests checked HTTP status codes and speed, without checking whether the model's output was coherent.

The second was a bug in SGLang. A prompt that did not fit the pool was internally marked as rejected and replaced with a one-token placeholder. Instead of aborting the request and returning an error to the client, the prefill side built the cache for that single token and told the decode side the transfer was complete. The decode side then read all the pages it had reserved for the long prompt, and most of them still held what earlier requests had left there: other users' prompts and partial generations. According to Cloudflare, the client got a successful response instead of an error, and the reply looked coherent. The company also notes that, while investigating, it found the same bug had been reported to SGLang by another user on July 6, 2026.

Report and first fix

A security researcher from Knostic reported the issue on September 8 through Cloudflare's HackerOne vulnerability program. According to the timeline in the report, Cloudflare declared a security incident at 13:22 UTC the next day, its product security team reproduced the leak with two separate accounts within 25 minutes, and the model was taken offline at 14:00, with the status page updated. The model was restored at 19:40 the same day.

Cloudflare made two fixes. It aligned the GLM-5.3 settings with those of GLM-5.2, which freed GPU memory and raised the KV pool to about 2.04 million tokens, roughly twice the context window, so every valid prompt now fits. Noting that relying on pool size alone is fragile, the company also patched the engine so that a rejected request now ends with its original error before any memory is allocated or any cache is transferred. Both changes were tested against the researcher's reproduction script and Cloudflare's own tests before the model came back.

Fixes in SGLang

The report was published as a coordinated disclosure with the SGLang team, which posted its own write-up the same day. Cloudflare says it met the RadixArk team, which maintains SGLang, the day after the incident. The change that stops the leak in this incident is in SGLang 0.5.20, and a follow-up fix that stops rejected requests before any transfer begins is in 0.5.21. Fixes for related memory issues of the same kind went into versions 0.5.21 and 0.5.22. Cloudflare recommends that everyone running SGLang in this split setup move to 0.5.22 or later and compare KV pool size with context length after every change.

The company writes that it has applied additional safeguards to every model it serves with SGLang and now requires these checks for every new deployment. Its longer-term goals are to tag every memory page with a value that changes when the page is handed to another request, so that a request reading a page it does not own is caught at once, and to prove the safety of the cache transfer protocol with formal verification methods.

Sources: Cloudflare blog, SGLang team (LMSYS blog), GitHub (SGLang)