Application Security

Cloudflare Workers AI GLM-5.3 Model Exposed User Data via Cross-Request KV Cache Vulnerability

By ScanLabs AI Security Team
October 27, 2026
8 min read
Back to Hub
Cloudflare Workers AI GLM-5.3 Model Exposed User Data via Cross-Request KV Cache Vulnerability — Application Security illustr
Intelligence Brief

Cloudflare, a prominent content delivery network and cybersecurity company, recently disclosed and remediated a significant vulnerability affecting its Workers AI platform. Specifically, the GLM-5.3 large language model (LLM) was susceptible to a cross-request KV cache exposure, a flaw that could have allowed information from one user's interaction with the model to be unintentionally exposed to another user's subsequent request. Discovered and swiftly addressed in late May 2024, this incident underscores the complex security challenges inherent in shared, multi-tenant AI inference environments, particularly as the adoption of LLMs accelerates across various industries. While Cloudflare has confirmed the issue is resolved, the nature of this vulnerability highlights critical considerations for developers and security professionals deploying or utilizing AI models in production.

The Mechanics of a Cross-Request KV Cache Exposure

At the heart of this incident lies the KV cache, or Key-Value cache, a fundamental optimization technique used in large language models to enhance inference speed and efficiency. When an LLM processes a sequence of text, it generates internal representations (keys and values) for each token. For subsequent tokens in the same sequence, instead of re-computing these representations, the model can retrieve them from the KV cache. This significantly reduces computational overhead, especially for long prompts or conversational AI where the model needs to maintain context.

The vulnerability in Cloudflare's Workers AI GLM-5.3 model arose when the KV cache, designed to speed up individual user requests, was not adequately isolated between different user requests. In a multi-tenant environment like Workers AI, multiple users might be sending prompts to the same underlying model instance. If the KV cache is not properly cleared or partitioned between these distinct requests, fragments of data—such as parts of previous prompts, intermediate thoughts, or even sections of generated responses—could inadvertently persist in the cache. A subsequent, unrelated request from another user might then "see" or influence the output based on these leftover cached values. This isn't a direct data breach in the traditional sense of exfiltrating an entire database, but rather an insidious form of information leakage, where the model's internal state reflects and potentially exposes data from other users. Cloudflare's prompt remediation, detailed in their May 28, 2024 blog post, involved ensuring strict isolation of these caches to prevent any cross-request contamination.

Who Was Potentially Affected?

The immediate population affected by this cross-request KV cache exposure included users of the GLM-5.3 model on Cloudflare's Workers AI platform. Any organization or individual who submitted prompts or processed responses through this specific LLM during the period the vulnerability was active could have been at risk of having their data fragments exposed to other users. It's important to clarify that this vulnerability is specific to the GLM-5.3 model on Workers AI; other models or Cloudflare services were not implicated in this particular disclosure.

Cloudflare's swift action means that the vulnerability is no longer exploitable. However, the nature of the exposure implies that, for the duration it existed, data fragments could have been inadvertently seen by other users. The full extent of actual data exposure, including whether any malicious actors successfully exploited this, has not been publicly detailed. This type of vulnerability falls under the broader category of Sensitive Information Disclosure, which is a significant concern in the OWASP Top 10 for Large Language Model Applications (LLM06). While the data exposure was not a direct exfiltration of sensitive databases, the leakage of prompt inputs or partial responses could have contained proprietary information, personally identifiable information (PII), or other confidential data, depending on the nature of the prompts submitted by users. For organizations that used GLM-5.3 for tasks involving sensitive data, even partial exposure represents a serious compliance and privacy risk.

Broader Implications for AI Security and Multi-Tenancy

This incident serves as a stark reminder of the unique and evolving security landscape surrounding artificial intelligence, particularly large language models operating in shared cloud environments. The GLM-5.3 KV cache exposure highlights several critical implications:

  • Multi-Tenancy Risks: Cloud providers offer immense scalability and cost-efficiency by sharing infrastructure among numerous clients. However, this multi-tenancy introduces complex isolation challenges. If the isolation mechanisms between tenants (or in this case, between individual requests within the same model instance) are flawed, data leakage becomes a tangible threat. This is not unique to AI; traditional virtual machines and containers have faced similar issues, but the internal state of an LLM presents a novel attack surface.
  • LLM-Specific Attack Surfaces: Traditional cybersecurity frameworks are still catching up to the nuances of AI. Vulnerabilities like KV cache exposure are distinct from typical web application flaws (e.g., SQL injection, XSS) and require a deeper understanding of LLM architecture and inference processes. The OWASP Top 10 for LLMs is an essential resource, providing a taxonomy for these emerging risks, including LLM06: Sensitive Information Disclosure and LLM05: Insecure Output Handling.
  • Trust in AI Services: For businesses integrating AI into their operations, trust in the underlying platform's security is paramount. Incidents like this, even when quickly remediated, can erode confidence and raise questions about the due diligence applied to model deployment and infrastructure security. Organizations relying on third-party AI services must incorporate robust vendor risk management into their security programs, assessing how providers handle data isolation, patching, and incident response.
  • Supply Chain Security for AI Models: The incident also touches upon the broader concept of the AI supply chain. While GLM-5.3 is a specific model, the underlying inference infrastructure and how models are integrated into platforms like Workers AI are critical components. Ensuring the security of the entire stack, from model development to deployment, is a complex undertaking that requires continuous vigilance.

Protecting AI Deployments and Shared Infrastructure

For security teams and IT leaders leveraging or planning to deploy AI models, especially in shared cloud environments, the Cloudflare Workers AI incident offers valuable lessons and actionable recommendations:

  1. Prioritize Vendor Security Assessments: Before committing to any third-party AI service, conduct thorough security assessments of the provider. Inquire about their data isolation practices, how they secure multi-tenant environments, their incident response procedures, and their adherence to relevant compliance standards (e.g., NIST Cybersecurity Framework, ISO 27001).
  2. Understand Data Flow and Sensitivity: Meticulously map out what data is being sent to AI models, what is processed, and what is returned. Implement strict data minimization principles, ensuring only necessary information is exposed to the AI service. Classify the sensitivity of inputs and outputs to determine acceptable risk levels.
  3. Implement Input and Output Sanitization: While not directly preventing KV cache exposure, robust input sanitization can reduce the impact of other LLM-specific vulnerabilities like prompt injection (LLM01). Output sanitization can prevent the model from inadvertently generating harmful or sensitive information.
  4. Monitor for Anomalies: Establish logging and monitoring for AI model interactions. Look for unusual patterns in requests, unexpected outputs, or deviations from normal model behavior that might indicate a compromise or information leakage. This aligns with the MITRE ATT&CK framework's "Defense Evasion" (TA0005) and "Discovery" (TA0007) tactics, as attackers might probe for vulnerabilities.
  5. Embrace Secure-by-Design Principles for AI: For internal AI development, integrate security considerations from the earliest stages of the AI lifecycle. This includes secure model training, rigorous testing for vulnerabilities (including data leakage and model bias), and secure deployment practices.
  6. Regular Audits and Penetration Testing: Engage independent security experts to conduct regular audits and penetration tests specifically targeting your AI systems and their integrations, focusing on LLM-specific vulnerabilities.
  7. Stay Informed on LLM Security Research: The field of AI security is rapidly evolving. Subscribe to threat intelligence feeds and follow research from organizations like OWASP (especially the Top 10 for LLMs) to stay abreast of new attack vectors and mitigation strategies. You can also scan your site free at ScanLabs AI to identify other web-facing vulnerabilities.

The Cloudflare Workers AI GLM-5.3 incident serves as a crucial reminder that as AI becomes more pervasive, so too do the sophisticated security challenges associated with its deployment. Proactive security measures, robust vendor vetting, and a deep understanding of LLM-specific risks are essential to safeguarding data and maintaining trust in this transformative technology.

Frequently Asked Questions

What is a KV cache vulnerability in an LLM?

A KV (Key-Value) cache vulnerability in a large language model (LLM) occurs when the temporary storage used to speed up model inference is not properly isolated. This can lead to fragments of data from one user's request (like parts of a prompt or generated response) inadvertently becoming visible to another user's subsequent request, potentially exposing sensitive information.

Was my data exposed by the Cloudflare GLM-5.3 issue?

Cloudflare has publicly stated that the cross-request KV cache exposure vulnerability affecting its GLM-5.3 model on Workers AI has been remediated. While the specific extent of past data exposure is not detailed, the issue was addressed to prevent further instances. Users who utilized the GLM-5.3 model during the period the vulnerability was active could have been at risk.

How can organizations prevent similar AI data exposures?

Organizations should prioritize thorough security assessments of AI service providers, understand the sensitivity of data sent to LLMs, and implement strong input/output sanitization. Regular security audits, anomaly monitoring, and adhering to secure-by-design principles for AI development are also critical steps to prevent such data exposures.


Source: blog.cloudflare.com — this analysis is based on reporting from blog.cloudflare.com.

Related reading

#cybersecurity#security#disclosure#container#ot#incident response#iso#standard

Related articles

ScanLabs AI Security Team

Researched and written by the ScanLabs AI Security Team — the researchers behind ScanLabs AI, an automated website security scanner that checks sites against thousands of known vulnerabilities and the OWASP Top 10. Our team tracks emerging threats daily to help businesses find and fix exposures before attackers do. Articles are AI-assisted and reviewed for technical accuracy.

Run a free security scan