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-40395

CVE-2026-40395: Varnish Enterprise DoS Vulnerability

CVE-2026-40395 is a denial of service vulnerability in Varnish Enterprise that allows workspace overflow attacks causing daemon panic. This post explains its impact, affected versions, and mitigation steps.

Published: April 17, 2026

CVE-2026-40395 Overview

CVE-2026-40395 is a Denial of Service vulnerability in Varnish Enterprise before version 6.0.16r12 that allows malicious clients to trigger a workspace overflow, resulting in a daemon panic and server crash. The vulnerability exists in the headerplus.write_req0() function from vmod_headerplus, which updates the underlying req0 object. When an amended request contains too many header fields for req0, a workspace overflow occurs, triggering a panic that crashes the Varnish Enterprise server.

Critical Impact

Malicious clients can remotely crash Varnish Enterprise servers by sending requests with excessive header fields, causing service disruption for shared VCL deployments including those managed by Varnish Controller.

Affected Products

  • Varnish Enterprise versions prior to 6.0.16r12
  • Shared VCL deployments using vmod_headerplus
  • Varnish Controller managed environments

Discovery Timeline

  • April 12, 2026 - CVE-2026-40395 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-40395

Vulnerability Analysis

This vulnerability is classified under CWE-770 (Allocation of Resources Without Limits or Throttling). The core issue lies in how the headerplus.write_req0() function handles header field transfers between request objects in VCL processing.

In Varnish Enterprise, req0 represents the original read-only request from which the mutable req object is derived. The headerplus.write_req0() function allows VCL code to write an amended request back to req0, which is particularly useful when preparing a refined request before switching to a different VCL using the return (vcl(<label>)) action.

The vulnerability manifests when the amended req object contains more header fields than the workspace allocated for req0 can accommodate. Without proper bounds checking on the number of header fields, the function attempts to write beyond the allocated workspace memory, triggering a workspace overflow condition. This overflow causes the Varnish Enterprise daemon to panic and crash, effectively denying service to all clients.

Root Cause

The root cause is insufficient validation of header field counts before writing to the req0 workspace. The headerplus.write_req0() function fails to verify that the destination workspace has adequate capacity for the header fields being transferred from the amended request. This lack of resource allocation limits allows an attacker-controlled request with excessive headers to exhaust the workspace memory.

Attack Vector

An attacker can exploit this vulnerability by crafting HTTP requests with a large number of header fields targeting a Varnish Enterprise server that uses shared VCL with the vmod_headerplus module. The attack requires network access to the server but no authentication or user interaction. The attack flow involves:

  1. Attacker sends an HTTP request with an excessive number of header fields to the Varnish Enterprise server
  2. The VCL processing amends the request and calls headerplus.write_req0() to prepare for VCL switching
  3. The function attempts to write the oversized header collection to the req0 workspace
  4. The workspace overflow triggers a panic condition
  5. The Varnish Enterprise daemon crashes, causing service disruption

For detailed technical information, refer to the Varnish Security Advisory VEV00003.

Detection Methods for CVE-2026-40395

Indicators of Compromise

  • Unexpected Varnish Enterprise daemon crashes with panic messages related to workspace overflow
  • Log entries indicating workspace exhaustion or memory allocation failures in vmod_headerplus
  • Spike in HTTP requests containing abnormally high numbers of header fields
  • Service interruptions correlating with specific client request patterns

Detection Strategies

  • Monitor Varnish Enterprise logs for panic events mentioning workspace overflow or headerplus.write_req0()
  • Implement request header count monitoring at the load balancer or WAF level to detect anomalous requests
  • Deploy anomaly detection for HTTP requests with header counts exceeding typical application thresholds
  • Configure alerting on Varnish daemon process restarts or crashes

Monitoring Recommendations

  • Set up real-time monitoring for Varnish Enterprise process health and automatic restart events
  • Implement log aggregation to correlate crash events with incoming request patterns
  • Track header field counts per request to establish baselines and detect outliers
  • Monitor system metrics for sudden drops in Varnish connection handling capacity

How to Mitigate CVE-2026-40395

Immediate Actions Required

  • Upgrade Varnish Enterprise to version 6.0.16r12 or later immediately
  • If upgrade is not immediately possible, consider temporarily disabling shared VCL functionality
  • Implement upstream request filtering to limit maximum header field counts
  • Review VCL configurations using headerplus.write_req0() for potential exposure

Patch Information

Varnish Software has addressed this vulnerability in Varnish Enterprise version 6.0.16r12. Organizations running affected versions should upgrade as soon as possible. For detailed patch information and upgrade instructions, consult the Varnish Security Advisory VEV00003.

Workarounds

  • Configure upstream proxies or load balancers to reject requests exceeding a reasonable header count threshold
  • Implement VCL rules to inspect and limit header counts before processing with vmod_headerplus
  • Consider isolating shared VCL deployments until patches can be applied
  • Deploy WAF rules to filter requests with excessive header fields
bash
# Example: Limit request headers at nginx upstream proxy
# Add to nginx.conf server or location block
large_client_header_buffers 4 8k;

# Monitor Varnish process health
systemctl status varnish --no-pager
journalctl -u varnish -f --grep="panic\|workspace"

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechVarnish

  • 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-770
  • Technical References
  • Varnish Security Advisory VEV00003
  • Related CVEs
  • CVE-2025-31616: Varnish WordPress Plugin CSRF 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