News Security

Cloudflare Fixes KV Cache Vulnerability in Workers AI Model

Cloudflare says a KV cache vulnerability in its GLM Workers AI model exposed other customers' data in 155 responses to very long prompts.

Cloudflare says a bug in its Workers AI service caused the GLM model to return text from other customers' requests in 155 responses. Cloudflare reports that all affected prompts were longer than 681,280 tokens, and the exposure ran from August 27 to September 9, 2026.

A security researcher from Knostic reported the problem on September 8. Cloudflare reproduced it the next morning and took the model offline within 40 minutes of declaring an incident. It restored the model on September 9 with a corrected configuration and a patched inference engine. Cloudflare says no other Workers AI model was affected and it found no evidence of deliberate exploitation.

Two overlapping faults caused the leak. Cloudflare ran the model with a context window of 1,048,576 tokens, but the memory pool that stores the model's working state, called the KV cache, held only 681,280 tokens. Cloudflare expected the engine to reject prompts that did not fit. SGLang, the open-source inference engine Cloudflare uses, instead replaced an over-length prompt with a one-token placeholder. The decode step then generated answers from stale cache pages that still held earlier customers' data.

Cloudflare enlarged the pool to about 2.04 million tokens, roughly twice the context length, so a valid prompt always fits. It also made the engine's rejection path safe and published the report alongside a post from SGLang.

Source: Cross-request KV cache exposure in the GLM-5.3 Workers AI model, and our remediation with SGLang | Cloudflare Blog.