{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-40395 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-40395 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-40395 is a medium-severity denial of service vulnerability in varnish-software Varnish Enterprise, published on 12 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40395 and fix it if it is affected.\n\nWhat it is: CVE-2026-40395 is a medium-severity denial of service vulnerability in varnish-software Varnish Enterprise, published on 12 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40395 in the wild and no public exploit code.\n\nAffected product: varnish-software Varnish Enterprise. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40395/ (Markdown: https://insights.sbomify.com/CVE-2026-40395/index.md)","id":"CVE-2026-40395","markdown":"https://insights.sbomify.com/CVE-2026-40395/index.md","name":"CVE-2026-40395","record":{"aliases":["GHSA-59jh-85v4-gxrf","UBUNTU-CVE-2026-40395"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Varnish Enterprise","requires_auth":"none","summary":"Malicious clients can crash the Varnish Enterprise server via workspace overflow in shared VCL deployments, causing denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"varnish_enterprise","vendor":"varnish-software"}],"cvss":{"score":4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"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(\u003clabel\u003e)) 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Denial of service in Varnish Enterprise","id":"CVE-2026-40395","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Denial of service in Varnish Cache","id":"CVE-2026-40396"},"packages":[],"prev":{"headline":"Denial of service in Varnish Cache","id":"CVE-2026-40394"},"products":["Varnish Enterprise"],"published":"2026-04-12","related":[{"cvss_score":6.5,"headline":"Memory corruption in n/a","id":"CVE-2023-41104","kev_date_added":null,"published":"2023-08-23"},{"cvss_score":5.4,"headline":"Varnish Cache before 8.0.1 and Varnish Enterprise before 6.0.16r12, in certain unchecked req.url scenarios, mishandle URLs with a path of /","id":"CVE-2026-34475","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":5.4,"headline":"Other in Varnish Cache","id":"CVE-2025-30346","kev_date_added":null,"published":"2025-03-21"},{"cvss_score":4,"headline":"Denial of service in Varnish Cache","id":"CVE-2026-40394","kev_date_added":null,"published":"2026-04-12"},{"cvss_score":4,"headline":"Information disclosure in Varnish Enterprise","id":"CVE-2025-30347","kev_date_added":null,"published":"2025-03-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-13","vendors":["varnish-software"]},"summary":"Malicious clients can crash the Varnish Enterprise server via workspace overflow in shared VCL deployments, causing denial of service.","url":"https://insights.sbomify.com/CVE-2026-40395/"}