# CVE-2026-40395: Varnish Enterprise before 6.0.16r12 allows a "workspace overflow" denial of service (daemon panic) for shared VCL.

- Severity: Medium 4.0 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-04-12T19:21:09.265Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- varnish-software Varnish Enterprise: from 6.0.9r5 before 6.0.16r12
- varnish-software varnish_enterprise: up to 6.0.15; 6.0.16

## Every score

- mitre: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://docs.varnish-software.com/security/VEV00003/> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-40395](https://www.cve.org/CVERecord?id=CVE-2026-40395), CVE Terms of Use, modified 2026-04-13
- NVD: [CVE-2026-40395](https://nvd.nist.gov/vuln/detail/CVE-2026-40395), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40395 · Whole record: https://cve.day/CVE-2026-40395.json · Rebuilt by cve.day 2026-11-25T22:59:18.578Z
