Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 81%

CVE-2026-40394: CWE-670 Always-Incorrect Control Flow Implementation in varnish-software Varnish Cache

0
Medium
VulnerabilityCVE-2026-40394cvecve-2026-40394cwe-670
Published: Sun Apr 12 2026 (04/12/2026, 19:17:34 UTC)
Source: CVE Database V5
Vendor/Project: varnish-software
Product: Varnish Cache

Description

Varnish Cache versions prior to 9. 0. 1 and Varnish Enterprise before 6. 0. 16r11 contain a vulnerability that can cause a denial of service via a workspace overflow leading to a daemon panic. This occurs during the HTTP/2 session upgrade process when buffer allocation splits the original workspace, and certain amounts of prefetched data cause pipelining operations to exhaust the workspace. The vulnerability is identified as CWE-670, relating to always-incorrect control flow implementation.

CVSS v3.1

Score 4.0medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/20/2026, 06:21:17 UTC

Technical Analysis

CVE-2026-40394 affects Varnish Cache 9.0.0 and earlier versions, where the handling of HTTP/2 session upgrades involves repurposing an HTTP/1 request as stream zero and allocating buffer space to send frames to the client. This allocation splits the original workspace, and depending on the amount of prefetched data, subsequent fetch operations may perform pipelining that exceeds the workspace capacity, causing a workspace overflow and resulting in a denial of service via daemon panic. The vulnerability is categorized under CWE-670, indicating a control flow implementation flaw.

Potential Impact

The vulnerability can cause a denial of service condition by crashing the Varnish Cache daemon due to workspace overflow during HTTP/2 session upgrades with specific prefetched data amounts. There is no impact on confidentiality or integrity, and no known exploits are reported in the wild. The CVSS score is 4.0 (medium severity), reflecting a network attack vector with high attack complexity but no privileges or user interaction required.

Mitigation Recommendations

No official patch or remediation level has been confirmed at this time. Users should monitor the vendor advisory for updates regarding fixes. Until a patch is available, consider limiting exposure to untrusted HTTP/2 traffic or disabling HTTP/2 support if feasible to reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mitre
Date Reserved
2026-04-12T19:17:33.934Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69dbf32682d89c981fb0093f

Added to database: 4/12/2026, 7:31:50 PM

Last enriched: 4/20/2026, 6:21:17 AM

Last updated: 5/27/2026, 11:59:08 PM

Views: 75

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses