Skip to main content

Varnish Cache CVE-2026-40394

| EUVDEUVD-2026-21738 MEDIUM
Always-Incorrect Control Flow Implementation (CWE-670)
2026-04-12 mitre GHSA-26pg-g54q-jv62
4.0
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
4.0 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L
Red Hat
5.9 MEDIUM
qualitative

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

6
Patch released
Apr 17, 2026 - 14:35 nvd
Patch available
Patch available
Apr 16, 2026 - 05:29 EUVD
9.0.1
Analysis Generated
Apr 12, 2026 - 19:55 vuln.today
EUVD ID Assigned
Apr 12, 2026 - 19:45 euvd
EUVD-2026-21738
Analysis Generated
Apr 12, 2026 - 19:45 vuln.today
CVE Published
Apr 12, 2026 - 19:17 nvd
MEDIUM 4.0

DescriptionCVE.org

Varnish Cache 9 before 9.0.1 and Varnish Enterprise before 6.0.16r11 allows a "workspace overflow" denial of service (daemon panic) for certain amounts of prefetched data. The setup of an HTTP/2 session starts with a speculative HTTP/1 transport, and upon upgrading to h2 the HTTP/1 request is repurposed as stream zero. During the upgrade, a buffer allocation is made to reserve space to send frames to the client. This allocation would split the original workspace, and depending on the amount of prefetched data, the next fetch could perform a pipelining operation that would run out of workspace.

AnalysisAI

Denial of service via workspace overflow in Varnish Cache 9 before 9.0.1 and Varnish Enterprise before 6.0.16r11 allows unauthenticated remote attackers to trigger daemon panic through HTTP/2 session upgrade with specific amounts of prefetched data. The vulnerability exploits improper buffer allocation during HTTP/1 to HTTP/2 transport upgrade, causing workspace exhaustion on subsequent pipelined fetch operations. EPSS score of 4.0 (low-to-medium risk) reflects attack complexity and limited scope (local availability impact only), though no public exploit code or active exploitation has been confirmed.

Technical ContextAI

Varnish Cache is a high-performance HTTP accelerator and reverse proxy that manages request/response lifecycle using workspace buffers for memory allocation. The vulnerability resides in the HTTP/2 session initialization logic (CWE-670: Improper Error Handling) where a speculative HTTP/1 transport is established first, then upgraded to HTTP/2. During upgrade, the system allocates a buffer to reserve frame-sending capacity, which fragments the workspace. When the HTTP/1 request is repurposed as stream zero in the new HTTP/2 session and subsequent fetch operations attempt pipelining, the fragmented workspace becomes insufficient, causing allocation failure and daemon panic. The affected products are Varnish Cache versions prior to 9.0.1 and Varnish Enterprise versions before 6.0.16r11, as identified in the CPE string for a:varnish-software:varnish_cache.

RemediationAI

Upgrade Varnish Cache to version 9.0.1 or later, or upgrade Varnish Enterprise to version 6.0.16r11 or later. Administrators unable to patch immediately should monitor Varnish daemon logs for panic events triggered by workspace allocation failures during HTTP/2 session upgrade, and consider network-level rate limiting or request filtering on HTTP/2 upgrade attempts if feasible. Consult the vendor security advisory at https://docs.varnish-software.com/security/VEV00002/ for environment-specific guidance and confirmation of patched versions for your deployment.

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2017-8807 CRITICAL
9.1 Nov 16

vbf_stp_error in bin/varnishd/cache/cache_fetch.c in Varnish HTTP Cache 4.1.x before 4.1.9 and 5.x before 5.2.1 allows r

CVE-2013-4484 MEDIUM POC
5.0 Nov 01

Varnish before 3.0.5 allows remote attackers to cause a denial of service (child-process crash and temporary caching out

CVE-2015-8852 HIGH
7.5 Apr 25

Varnish 3.x before 3.0.7, when used in certain stacked installations, allows remote attackers to inject arbitrary HTTP h

CVE-2017-12425 HIGH
7.5 Aug 04

An issue was discovered in Varnish HTTP Cache 4.0.1 through 4.0.4, 4.1.0 through 4.1.7, 5.0.0, and 5.1.0 through 5.1.2.

CVE-2022-45060 HIGH
7.5 Nov 09

An HTTP Request Forgery issue was discovered in Varnish Cache 5.x and 6.x before 6.0.11, 7.x before 7.1.2, and 7.2.x bef

CVE-2022-45059 HIGH
7.5 Nov 09

An issue was discovered in Varnish Cache 7.x before 7.1.2 and 7.2.x before 7.2.1. Rated high severity (CVSS 7.5), this v

CVE-2022-38150 HIGH
7.5 Aug 11

In Varnish Cache 7.0.0, 7.0.1, 7.0.2, and 7.1.0, it is possible to cause the Varnish Server to assert and automatically

CVE-2021-28543 HIGH
7.5 Mar 16

Varnish varnish-modules before 0.17.1 allows remote attackers to cause a denial of service (daemon restart) in some conf

CVE-2020-11653 HIGH
7.5 Apr 08

An issue was discovered in Varnish Cache before 6.0.6 LTS, 6.1.x and 6.2.x before 6.2.3, and 6.3.x before 6.3.2. Rated h

CVE-2019-15892 HIGH
7.5 Sep 03

An issue was discovered in Varnish Cache before 6.0.4 LTS, and 6.1.x and 6.2.x before 6.2.1. Rated high severity (CVSS 7

CVE-2021-36740 MEDIUM
6.5 Jul 14

Varnish Cache, with HTTP/2 enabled, allows request smuggling and VCL authorization bypass via a large Content-Length hea

Vendor StatusVendor

Share

CVE-2026-40394 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy