system: OPERATIONAL
← back to all hacks
DATA LEAK MEDIUM NEW

Workers AI GLM-5.3 Leak: How a Rejected Prompt Served Another User's KV Cache

Oversized prompts to GLM-5.3 on Cloudflare Workers AI returned other customers' data. The cause: an undersized KV pool and an SGLang rejection path that never stopped the request.

2026-11-13 // 6 min affects: glm-5.3, cloudflare-workers-ai, sglang-disaggregated-serving

What is this?

From August 27 to September 9, 2026, Cloudflare Workers AI served the GLM-5.3 model (@cf/zai-org/glm-5.3) in a configuration where very long prompts could be answered with content from other customers’ requests. Cloudflare disclosed the incident on October 26, 2026, in a post by Kevin Flansburg and Michelle Chen, in coordination with the reporter, Gadi Evron of Knostic, and with the SGLang maintainers, who published a companion security update the same day. Knostic published its own write-up on October 27, 2026.

Cloudflare counts 155 affected responses, says no other Workers AI model was affected, and reports no evidence of deliberate exploitation. No CVE was assigned. The issue is fixed on Workers AI, and upstream fixes ship in SGLang v0.5.21 and later.

This is not a prompt injection or a model flaw. It is a serving-layer isolation failure: the inference engine’s KV cache, the memory holding each request’s attention state, crossed a tenant boundary.

How it works

Cloudflare describes two overlapping causes.

1. A configuration mismatch. GLM-5.3 was advertised with a 1,048,576-token context window, but the KV cache pool on the prefill GPUs held only 681,280 tokens. The gap was known before launch, but pre-launch tests returned HTTP 200, so it was not treated as a problem.

2. An SGLang bug in disaggregated prefill/decode mode. In this architecture, one set of GPUs computes the prompt (prefill) and transfers the KV cache to another set that generates tokens (decode). When a prompt exceeded the prefill pool, SGLang’s scheduler “rejected” it by replacing it with a one-token placeholder, but the rejection did not stop the request:

  • the admission queues checked whether the request had finished, not whether it had been rejected, so it stayed live;
  • prefill ran on the placeholder, sent one KV page to decode and signaled the transfer as complete;
  • decode reserved pages for the full prompt length and attended over stale pages still holding earlier requests’ data;
  • the client received HTTP 200 and a coherent answer built from someone else’s context.

The SGLang team’s post frames the wider bug class as a race: an aborted request’s in-flight RDMA writes can land in KV slots already reassigned to another request, silently, with no error or log line. It states that default disaggregated configurations with RDMA backends were affected from the v0.4.x line (early 2025) until v0.5.21 (v0.5.22 for the MORI backend).

Knostic’s detection method is worth noting for defenders. Evron first saw the anomaly through OpenRouter, traced it to Cloudflare on September 7, and then ran black-box tests from his own account: each request carried a unique canary marker at both ends of a large filler. Healthy requests echoed the marker; affected ones did not. To rule out memorized training data, the team matched leaked content against a public repository commit created minutes before the affected inference. In Knostic’s tests, affected requests started at about 700,000 prompt tokens and were billed in full.

Why it matters

Multi-tenant inference is now shared infrastructure, like a database or object store, and its internal state needs the same tenant isolation. Leaked content in Knostic’s samples included names, company names, invoice numbers and amounts, source-code details, file paths and agent task records.

Three lessons generalize. First, a “successful” HTTP response is not proof of correct behavior: the oversized request should have failed with a 400 and instead produced fluent output from the wrong context. Second, output that looks like a hallucination may be a data leak; the two are hard to tell apart without canaries. Third, self-hosted SGLang deployments using disaggregated serving are exposed to the same bug class if they run older versions or have a KV pool smaller than their context length. This follows our coverage of SGLang’s ZMQ pickle RCE, prefix-cache timing attacks and the serving-layer attack surface.

Defenses

For SGLang operators, from the Cloudflare and SGLang posts:

  • Upgrade to SGLang v0.5.22 or later (v0.5.23 adds a failed-send fix for NIXL and MORI), or backport the upstream fixes that retire aborted prefill requests and reject them at admission, before any KV transfer.
  • Check KV pool size against context length on every prefill and decode node, from the running engine’s startup logs, after any change to weights, quantization, parallelism or memory settings. Cloudflare resized the GLM-5.3 prefill pool to about 2.04 million tokens, roughly twice the context length.
  • On v0.5.19 or v0.5.20, set SGLANG_DISAGGREGATION_DEFERRED_DECODE_KV_RELEASE=1 on both roles (default from v0.5.21) and bound Mooncake transfer batches; the SGLang team says this does not replace upgrading.
  • Enable integrity checks where supported: --disaggregation-enable-kv-checksum adds an opt-in check on transferred KV cache, on both prefill and decode.
  • Use a router that cancels both halves of a prefill/decode pair on abort, and avoid load-balancer settings that abort requests mid-transfer.
  • Monitor sglang:decode_deferred_kv_release_total{outcome}; a high timeout ratio signals trouble on the acknowledgement path.

For API consumers and platform teams:

  • Plant canary markers in long-context tests and alert when output ignores the input.
  • Verify advertised versus enforced context windows, and treat latency drops, full billing for missing output, or off-topic answers at large prompt sizes as signals worth reporting.
  • Avoid sending secrets in prompts that do not need them; a provider-side isolation bug exposes whatever is in the context.

Status

ItemDetail
Exposure window2026-08-27 to 2026-09-09 (GLM-5.3 on Workers AI only)
ReportHackerOne, 2026-09-08 (Knostic)
Fix on Workers AI2026-09-09: model set private, then restored with pool resize and engine patch
Affected responses155, per Cloudflare; no evidence of deliberate exploitation
Upstream fixSGLang v0.5.21 (Mooncake, NIXL), v0.5.22 (MORI), v0.5.23 (additional send fixes)
Public disclosure2026-10-26 (Cloudflare, SGLang); 2026-10-27 (Knostic)
CVENone reported

Sources