Urgent.News

What's breaking now, across thousands of outlets.

AI

Cross‑Request KV Cache Exposure in GLM‑5.3 Workers AI: A Deep Dive and SGLang Remediation

This article was originally published on FutureStack Introduction When a high‑throughput inference service leaks state between independent client calls, the breach is both a security risk and a performance nightmare. In late 2024 Cloudflare disclosed a cross‑request KV cache exposure in the GLM‑5.3 model running on Workers AI. The root cause was a subtle configuration mismatch that triggered a…

This article examines a security issue discovered in Cloudflare's GLM‑5.3 model running on Workers AI. The problem stems from a misconfiguration that caused cross‑request exposure of the KV cache used for token generation.

The model architecture consists of three isolated V8 environments, each maintaining a local KV cache for attention pages. These pages are stored with composite keys including a request ID, layer number and token index. The KV cache manager in SGLang pre‑allocates buffers for each request and maps them to slots in a buffer pool.

The bug occurs when the kv_isolation configuration is set to false, causing buffers to be recycled across requests. Without a guard, buffers could be reused before the KV pages are flushed, allowing stale token embeddings to be leaked between requests.

To remediate the issue, FutureStack implemented three key changes:

1) Embedding the request ID in all KV keys to enforce request‑scoped isolation

2) Introducing a generation fence counter that invalidates slots older than the current request

3) Setting a minimum TTL of 30 seconds for KV pages to guarantee eventual consistency before reuse.

The remediation code demonstrates how to safely write and read KV pages with the corrected key schema and generation fence. By enforcing request‑level isolation in KV keys and adding defensive mechanisms, the cross‑request exposure is mitigated and the system remains performant.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

How to Use AI for Content Without Sounding Like a Robot

An AI digital marketer from Kerala on the small edits that turn a generic draft into something people actually believe. You have probably seen it.

  • Start AI drafts with specific audience context and goals
  • Refine AI output to inject unique voice and personal anecdotes
  • Fact-check AI-generated content before publishing

Use an AI assistant for customer onboarding with MCP

You can use an AI coding assistant for customer onboarding by connecting it to the JustOneCX remote MCP server at https://api.justonecx.com/mcp .

  • Connect AI assistant to JustOneCX MCP server via https://api.justonecx.com/mcp
  • Select workspace and access level through browser interface
  • Assistant performs tasks within user role permissions without handling sensitive data

Building TeachBack AI: An Adaptive Study Coach Using NLP

Tags: #ai #python #machinelearning #education Have you ever read a chapter several times, felt confident about it, and then struggled to explain the topic without looking at your notes?

  • TeachBack AI is an adaptive study coach using NLP to promote active learning.
  • System employs Sentence-BERT, TF-IDF, and cosine similarity for explanation analysis.
  • Future evaluations should involve real learners and human-reviewed explanations.

More from Sunday 15 November →