CVE-2026-40395
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2026-40395",
"sourceIdentifier": "[email protected]",
"published": "2026-04-12T20:16:18.893",
"lastModified": "2026-10-26T22:10:00.163",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Varnish Enterprise anterior a 6.0.16r12 permite una ’desbordamiento de espacio de trabajo’ denegación de servicio (pánico del demonio) para VCL compartido. La función headerplus.write_req0() de vmod_headerplus actualiza el req0 subyacente, que normalmente es la solicitud original de solo lectura de la cual se deriva req (legible y escribible desde VCL). Esto es útil en el VCL activo, después de modificar req, para preparar un req0 refinado antes de cambiar a un VCL diferente con la acción return (vcl([label])). Así es, por ejemplo, como el Varnish Controller opera las implementaciones de VCL compartido. Si el req modificado contenía demasiados campos de encabezado para req0, esto habría resultado en un desbordamiento de espacio de trabajo que a su vez desencadenaría un pánico y colapsaría el servidor Varnish Enterprise. Esto podría usarse como un vector de ataque de denegación de servicio por clientes maliciosos."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "varnish-software",
"product": "Varnish Enterprise",
"defaultStatus": "unaffected",
"versions": [
{
"version": "6.0.9r5",
"lessThan": "6.0.16r12",
"versionType": "custom",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L",
"baseScore": 4.0,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "CHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 2.2,
"impactScore": 1.4
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"baseScore": 7.5,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-04-13T15:45:24.491498Z",
"id": "CVE-2026-40395",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-770"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:*:*:*:*:*:*:*:*",
"versionEndIncluding": "6.0.15",
"matchCriteriaId": "E53A64C0-FC22-40B5-8C3B-6288B44AC3FC"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r1:*:*:*:*:*:*",
"matchCriteriaId": "F24D68B5-362E-4797-B6DE-C19A2893186C"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r10:*:*:*:*:*:*",
"matchCriteriaId": "910BAD01-26E5-4D12-AA23-0BD2D48F229C"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r11:*:*:*:*:*:*",
"matchCriteriaId": "BCF39307-6F25-4D97-8901-EE1A80A66AD9"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r2:*:*:*:*:*:*",
"matchCriteriaId": "05E529DF-DEE1-4A62-998B-CA312DF888FD"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r3:*:*:*:*:*:*",
"matchCriteriaId": "8AB27B34-2951-4755-851C-7C942DAFB6C7"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r4:*:*:*:*:*:*",
"matchCriteriaId": "18A22D42-B038-4E09-92DD-8AFD2F51A340"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r5:*:*:*:*:*:*",
"matchCriteriaId": "FE76D616-3AA8-4D9A-9D41-9AE35FE20DBC"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r6:*:*:*:*:*:*",
"matchCriteriaId": "9C5610CF-1FE4-4DF8-8D49-7C0CCF0359E4"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r7:*:*:*:*:*:*",
"matchCriteriaId": "27B776B2-9C38-45BE-89E4-ECDEEAE538A9"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r8:*:*:*:*:*:*",
"matchCriteriaId": "ED3CA600-C88D-4825-8C36-E052822AF59F"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:varnish-software:varnish_enterprise:6.0.16:r9:*:*:*:*:*:*",
"matchCriteriaId": "6B1D57B1-9771-4195-9EE3-B26EA776FB6B"
}
]
}
]
}
],
"references": [
{
"url": "https://docs.varnish-software.com/security/VEV00003/",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
}
]
}