Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-40394

CVE-2026-40394: Varnish Cache DoS Vulnerability

CVE-2026-40394 is a denial of service vulnerability in Varnish Cache that causes daemon panic through workspace overflow during HTTP/2 session upgrades. This article covers technical details, affected versions, and mitigation.

Published: April 17, 2026

CVE-2026-40394 Overview

CVE-2026-40394 is a denial of service vulnerability affecting Varnish Cache 9 before 9.0.1 and Varnish Enterprise before 6.0.16r11. The vulnerability allows attackers to trigger a "workspace overflow" condition that results in a daemon panic. This occurs due to improper handling of workspace allocation during the HTTP/1 to HTTP/2 upgrade process, particularly when specific amounts of prefetched data are present.

Critical Impact

Remote attackers can cause service disruption by triggering a daemon panic through crafted HTTP/2 session upgrades, potentially affecting availability of web applications relying on Varnish Cache as a reverse proxy.

Affected Products

  • Varnish Cache 9 before version 9.0.1
  • Varnish Enterprise before version 6.0.16r11

Discovery Timeline

  • 2026-04-12 - CVE-2026-40394 published to NVD
  • 2026-04-13 - Last updated in NVD database

Technical Details for CVE-2026-40394

Vulnerability Analysis

This vulnerability stems from CWE-670 (Always-Incorrect Control Flow Implementation) and manifests during the HTTP/2 session establishment process in Varnish Cache. When an HTTP/2 session is initialized, Varnish starts with a speculative HTTP/1 transport mechanism. Upon upgrading to HTTP/2 (h2), the original HTTP/1 request is repurposed as stream zero within the HTTP/2 context.

The critical flaw occurs during this upgrade phase: a buffer allocation is performed to reserve space for sending frames to the client. This allocation splits the original workspace memory region. Depending on the amount of data that has been prefetched before the upgrade occurs, subsequent fetch operations may attempt pipelining that exhausts the available workspace memory, leading to a daemon panic.

The network-accessible nature of this vulnerability means it can be exploited remotely without authentication, though the attack complexity is higher due to the specific conditions required involving prefetched data amounts.

Root Cause

The root cause is improper control flow handling (CWE-670) in the workspace memory management during HTTP protocol upgrades. The workspace allocation logic fails to properly account for scenarios where the combination of the buffer reservation for HTTP/2 frame transmission and existing prefetched data exceeds the available workspace capacity. This always-incorrect control flow leads to a predictable crash condition when specific data amounts trigger the overflow.

Attack Vector

The attack vector is network-based, exploiting the HTTP/2 upgrade mechanism. An attacker can potentially trigger this condition by:

  1. Initiating an HTTP/1 connection to a Varnish Cache server
  2. Sending requests that result in specific amounts of prefetched data
  3. Triggering an upgrade to HTTP/2
  4. Causing the workspace split to create insufficient remaining space
  5. Forcing a subsequent fetch operation that attempts pipelining

The vulnerability requires no authentication or user interaction, but the precise conditions involving prefetched data amounts increase the attack complexity.

The vulnerability mechanism involves workspace memory management during the HTTP/1 to HTTP/2 protocol upgrade. When the speculative HTTP/1 transport upgrades to HTTP/2, the buffer allocation for client frame transmission splits the workspace. If prefetched data is at certain thresholds, subsequent pipelining operations will exhaust workspace memory. For complete technical details, see the Varnish Security Advisory VEV00002.

Detection Methods for CVE-2026-40394

Indicators of Compromise

  • Varnish Cache daemon crash logs indicating workspace overflow or panic conditions
  • Unexpected service restarts or daemon failures correlating with HTTP/2 traffic patterns
  • Error messages in Varnish logs referencing workspace exhaustion during protocol upgrades

Detection Strategies

  • Monitor Varnish daemon logs for panic events and workspace-related error messages
  • Implement alerting on unexpected Varnish service restarts or crashes
  • Analyze HTTP/2 traffic patterns for anomalous upgrade sequences that precede service disruptions
  • Deploy network monitoring to detect potential exploitation attempts targeting HTTP/2 handshakes

Monitoring Recommendations

  • Enable verbose logging for HTTP/2 session handling in Varnish configurations
  • Implement health checks that detect daemon availability and restart frequency
  • Set up dashboards to track workspace utilization metrics if exposed by Varnish
  • Configure automated alerting for any daemon panic events in production environments

How to Mitigate CVE-2026-40394

Immediate Actions Required

  • Upgrade Varnish Cache to version 9.0.1 or later immediately
  • Upgrade Varnish Enterprise to version 6.0.16r11 or later
  • Review system logs for any evidence of prior exploitation attempts
  • Consider temporarily disabling HTTP/2 support if immediate patching is not possible

Patch Information

Varnish Software has released patches addressing this workspace overflow vulnerability. Organizations should upgrade to Varnish Cache 9.0.1 or Varnish Enterprise 6.0.16r11 to remediate this issue. Detailed patch information and security guidance can be found in the Varnish Security Advisory VEV00002.

Workarounds

  • Disable HTTP/2 support temporarily by removing or modifying the h2 feature flag in Varnish configuration until patching is complete
  • Implement rate limiting on incoming connections to reduce potential exploitation surface
  • Deploy a web application firewall (WAF) in front of Varnish to filter potentially malicious HTTP/2 upgrade attempts
  • Consider limiting prefetch operations or adjusting workspace size parameters as an interim measure (consult Varnish documentation for appropriate values)
bash
# Temporary workaround: Disable HTTP/2 in Varnish VCL
# Add to your VCL configuration to force HTTP/1.1 only
# Note: This reduces functionality but mitigates the vulnerability

# In vcl_recv, you can reject HTTP/2 connections
# Consult Varnish documentation for your specific version
# Recommended: Apply official patch instead of workarounds

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechVarnish Cache

  • SeverityMEDIUM

  • CVSS Score4.0

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-670
  • Technical References
  • Varnish Security Advisory VEV00002
  • Related CVEs
  • CVE-2026-40396: Varnish Cache 9 DoS Vulnerability

  • CVE-2026-34475: Varnish Cache Auth Bypass Vulnerability

  • CVE-2022-23959: Varnish Cache Request Smuggling Flaw

  • CVE-2021-36740: Varnish Cache Auth Bypass 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