# CVE-2026-40395

- Priority: **Routine**
- Reason: Not severe (CVSS 4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-12 · Modified: 2026-04-13
- Aliases: UBUNTU-CVE-2026-40395
- Record: https://cvemate.com/vulnerability/CVE-2026-40395 · JSON: https://cvemate.com/vulnerability/CVE-2026-40395/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.246%, percentile 16.907%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu varnish (Ubuntu): All versions (No fix recorded)
- varnish-software varnish\_enterprise: ≥ 6.0.9r5, \< 6.0.16r12 \| ≤ 6.0.15 \| 6.0.16:r1 \| 6.0.16:r10 \| 6.0.16:r11 \| 6.0.16:r2 \| 6.0.16:r3 \| 6.0.16:r4 \| 6.0.16:r5 \| 6.0.16:r6 \| 6.0.16:r7 \| 6.0.16:r8 \| 6.0.16:r9

## References

- <https://docs.varnish-software.com/security/VEV00003/>
- <https://ubuntu.com/security/CVE-2026-40395>
- <https://www.cve.org/CVERecord?id=CVE-2026-40395>

---

Data as of 2026-12-05T05:11:01.109Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
