Varnish Enterprise before 6.0.16r12 allows a "workspace overflow" denial of service (daemon panic) for shared VCL. The headerplus.write_req0() function from vmod_headerplus 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.
Conclusion & alert: CVE-2026-40395 is rated Low Risk (22.1/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.06%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-18 | 0.04% | 0.06% | +0.02% |
| 2 | 2026-04-13 | — | 0.04% | — |
Full EPSS history (2 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 4.0 | 3.1 | MEDIUM |
|
2.2 | 1.4 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
unimportant | CVE-2026-40395 unimportant priority: Debian including 1 source packages (varnish), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2026-40395 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2026-40395 |
ubuntu
|
medium | CVE-2026-40395 medium priority: Ubuntu including 1 source packages (varnish), 8 status rows across 8 suites (bionic, focal, jammy, noble, questing, trusty, upstream, xenial): needs-triage 7, not-affected 1. | https://ubuntu.com/security/CVE-2026-40395 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| varnish-software | varnish_enterprise | <= 6.0.15 | cpe:2.3:a:varnish-software:varnish_enterprise:*:*:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r1:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r10:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r11:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r2:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r3:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r4:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r5:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r6:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r7:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r8:*:*:*:*:*:* |
| varnish-software | varnish_enterprise | 6.0.16 | cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r9:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://docs.varnish-software.com/security/VEV00003/ | Vendor Advisory |