CVE-2026-40394: CWE-670 Always-Incorrect Control Flow Implementation in varnish-software Varnish Cache
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.
AI Analysis
Technical Summary
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.
CVE-2026-40394: CWE-670 Always-Incorrect Control Flow Implementation in varnish-software 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
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.