CVE-2026-40395: High severity Varnish Software Varnish Enterprise vulnerability

Published Apr 12, 2026
·
Updated

Varnish Enterprise before 6.0.16r12 allows a "workspace overflow" denial of service (daemon panic) for shared VCL. The headerplus.writereq0() function from vmodheaderplus updates the underlying req0, which is normally the original read-only request from which req is derived (readable and writable from VCL). This is useful in the active VCL, after amending req, to prepare a refined req0 before switching to a different VCL with the return (vcl(<label>)) action. This is for example how the Varnish Controller operates shared VCL deployments. If the amended req contained too many header fields for req0, this would have resulted in a workspace overflow that would in turn trigger a panic and crash the Varnish Enterprise server. This could be used as a Denial of Service attack vector by malicious clients.

Affected Software

13 affected components
Varnish Software Varnish Enterprise<6.0.16r12
Varnish-software Varnish Enterprise<=6.0.15
Varnish-software Varnish Enterprise=6.0.16-r1
Varnish-software Varnish Enterprise=6.0.16-r10
Varnish-software Varnish Enterprise=6.0.16-r11
Varnish-software Varnish Enterprise=6.0.16-r2
Varnish-software Varnish Enterprise=6.0.16-r3
Varnish-software Varnish Enterprise=6.0.16-r4
Varnish-software Varnish Enterprise=6.0.16-r5
Varnish-software Varnish Enterprise=6.0.16-r6
Varnish-software Varnish Enterprise=6.0.16-r7
Varnish-software Varnish Enterprise=6.0.16-r8
Varnish-software Varnish Enterprise=6.0.16-r9

Event History

Apr 12, 2026
CVE Published
via MITRE·07:21 PM
Data Sourced
via MITRE·07:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40395?

CVE-2026-40395 is classified as a denial of service vulnerability that can lead to a daemon panic.

2

How do I fix CVE-2026-40395?

To mitigate CVE-2026-40395, users should upgrade to Varnish Enterprise version 6.0.16r12 or later.

3

What versions of Varnish Enterprise are affected by CVE-2026-40395?

CVE-2026-40395 affects Varnish Enterprise versions earlier than 6.0.16r12.

4

What type of issue does CVE-2026-40395 represent?

CVE-2026-40395 represents a workspace overflow issue that results in a denial of service.

5

Can CVE-2026-40395 be exploited by remote attackers?

Yes, CVE-2026-40395 can be exploited by remote attackers to cause a service disruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203