The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-7141

CVE-2026-7141: vllm KV Cache Handler RCE Vulnerability

CVE-2026-7141 is a remote code execution flaw in vllm's KV Cache Handler affecting versions up to 0.19.0. The vulnerability stems from uninitialized resources. This article covers technical details, impact, and patching.

Published: April 30, 2026

CVE-2026-7141 Overview

A vulnerability was found in vLLM up to version 0.19.0 affecting the has_mamba_layers function within the file vllm/v1/kv_cache_interface.py of the KV Block Handler component. This uninitialized resource vulnerability (CWE-908) allows recycled KV cache blocks to hold stale key/value data from prior requests, where partial-block tail slots can leak NaN/Inf values into masked softmax operations.

Critical Impact

Recycled KV cache blocks containing stale data from prior requests may cause data leakage or undefined behavior in FullAttention models when NaN/Inf values propagate through softmax computations.

Affected Products

  • vLLM versions up to and including 0.19.0
  • Systems using FullAttention models with KV cache recycling
  • AI/ML inference deployments utilizing vLLM's v1 architecture

Discovery Timeline

  • 2026-04-27 - CVE CVE-2026-7141 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-7141

Vulnerability Analysis

This vulnerability stems from an uninitialized resource condition in vLLM's KV cache management system. The needs_kv_cache_zeroing property in kv_cache_interface.py was originally designed to only zero recycled KV blocks when Mamba layers were present. However, this logic failed to account for FullAttention models, which also require zeroing of recycled blocks to prevent stale data from contaminating subsequent inference requests.

When recycled KV cache blocks are reused without proper initialization, they can retain key/value tensors from previous requests. In FullAttention models specifically, partial-block tail slots containing residual NaN or Inf values can propagate through the masked softmax computation, potentially causing numerical instability, incorrect inference results, or information disclosure between requests.

The attack is considered to have high complexity and is described as difficult to exploit. The vulnerability requires network access and the ability to trigger specific model inference patterns that would cause the stale cache data to be utilized in a meaningful way.

Root Cause

The root cause lies in the incomplete conditional logic for determining when KV cache blocks require zeroing. The original implementation checked only for Mamba layer presence (self.has_mamba_layers) when deciding whether to zero recycled blocks. This check was insufficient because FullAttention models with FullAttentionSpec cache groups also require proper initialization of recycled KV blocks to prevent stale data leakage. The fix expands the needs_kv_cache_zeroing property to include both Mamba layers and any FullAttention specification groups.

Attack Vector

The vulnerability is exploitable remotely via network access. An attacker would need to manipulate the inference request patterns to cause KV cache block recycling scenarios where stale data from a previous request could influence subsequent inference operations. The attack complexity is considered high as it requires:

  1. Knowledge of the vLLM deployment configuration and model architecture
  2. Ability to send inference requests that trigger specific cache recycling patterns
  3. Timing and sequencing of requests to exploit the stale cache condition
python
 
     @property
     def needs_kv_cache_zeroing(self) -> bool:
-        return self.has_mamba_layers
+        # Recycled blocks may hold stale K/V from prior requests; partial-block
+        # tail slots can leak NaN/Inf into masked softmax (see #39146).
+        return self.has_mamba_layers or any(
+            type(g.kv_cache_spec) is FullAttentionSpec for g in self.kv_cache_groups
+        )

Source: GitHub Commit Update

Detection Methods for CVE-2026-7141

Indicators of Compromise

  • Unexpected NaN or Inf values appearing in model inference outputs
  • Inconsistent or anomalous inference results when processing sequential requests
  • Memory analysis revealing stale tensor data in recycled KV cache blocks
  • Unusual patterns in inference request timing that could indicate exploitation attempts

Detection Strategies

  • Monitor vLLM inference logs for numerical instability warnings or NaN/Inf errors in softmax operations
  • Implement tensor validation checks to detect propagation of uninitialized or stale values in KV cache
  • Review vLLM deployment configurations to identify FullAttention models that may be vulnerable
  • Audit request patterns for suspicious sequences that could trigger cache recycling exploitation

Monitoring Recommendations

  • Enable detailed logging for KV cache allocation and deallocation events
  • Implement alerts for inference outputs containing NaN or Inf values
  • Monitor memory utilization patterns for anomalies in KV block recycling behavior
  • Deploy application-level monitoring to track inference request patterns and timing

How to Mitigate CVE-2026-7141

Immediate Actions Required

  • Update vLLM to a patched version containing commit 1ad67864c0c20f167929e64c875f5c28e1aad9fd
  • Review all deployed models to identify those using FullAttention specifications
  • Implement input validation and output sanitization for inference requests
  • Consider temporarily disabling KV cache recycling in critical deployments until patched

Patch Information

The vulnerability has been addressed in commit 1ad67864c0c20f167929e64c875f5c28e1aad9fd. The patch modifies the needs_kv_cache_zeroing property in vllm/v1/kv_cache_interface.py to include FullAttention models in the zeroing requirement. Organizations should apply this patch or upgrade to a vLLM version that includes this fix. For detailed information, refer to the GitHub Pull Request and the GitHub Issue Discussion.

Workarounds

  • Disable KV cache block recycling if operationally feasible (may impact performance)
  • Implement custom middleware to manually zero KV cache blocks before reuse
  • Isolate inference requests to prevent cross-request data contamination
  • Apply network-level controls to limit inference request patterns from untrusted sources
bash
# Configuration example
# Verify vLLM version and check for vulnerability
pip show vllm | grep Version

# Apply the patch by updating to a patched version
pip install --upgrade vllm

# Alternatively, apply the specific commit if building from source
git fetch origin
git cherry-pick 1ad67864c0c20f167929e64c875f5c28e1aad9fd

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVllm

  • SeverityLOW

  • CVSS Score2.9

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-908
  • Technical References
  • GitHub Commit Update

  • GitHub Issue Discussion

  • GitHub Issue Comment

  • GitHub Pull Request

  • VulDB Vulnerability Submission

  • VulDB #359740

  • VulDB #359740 CTI Analysis
  • Related CVEs
  • CVE-2026-27893: Vllm Vllm RCE Vulnerability

  • CVE-2026-22778: vLLM ASLR Bypass and RCE Vulnerability

  • CVE-2026-22807: vLLM RCE Vulnerability

  • CVE-2025-62164: Vllm Vllm RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English