{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-40394 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2026-40394 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-40394 is a medium-severity denial of service vulnerability in varnish-software Varnish Cache, 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-40394 and fix it if it is affected.\n\nWhat it is: CVE-2026-40394 is a medium-severity denial of service vulnerability in varnish-software Varnish Cache, 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-40394 in the wild and no public exploit code.\n\nAffected product: varnish-software Varnish Cache. 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-40394/ (Markdown: https://insights.sbomify.com/CVE-2026-40394/index.md)","id":"CVE-2026-40394","markdown":"https://insights.sbomify.com/CVE-2026-40394/index.md","name":"CVE-2026-40394","record":{"aliases":["GHSA-26pg-g54q-jv62","UBUNTU-CVE-2026-40394"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Varnish Cache","requires_auth":"none","summary":"A workspace overflow in Varnish Cache during HTTP/2 upgrades allows attackers to cause a daemon panic and 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"},{"product":"vinyl_cache","vendor":"vinyl-cache"}],"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-670","name":"Always-Incorrect Control Flow Implementation"}],"description":"Varnish Cache 9 before 9.0.1 and Varnish Enterprise before 6.0.16r11 allows a \"workspace overflow\" denial of service (daemon panic) for certain amounts of prefetched data. The setup of an HTTP/2 session starts with a speculative HTTP/1 transport, and upon upgrading to h2 the HTTP/1 request is repurposed as stream zero. During the upgrade, a buffer allocation is made to reserve space to send frames to the client. This allocation would split the original workspace, and depending on the amount of prefetched data, the next fetch could perform a pipelining operation that would run out of workspace.","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 Cache","id":"CVE-2026-40394","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 Enterprise","id":"CVE-2026-40395"},"packages":[],"prev":{"headline":"Memory corruption in Mesa","id":"CVE-2026-40393"},"products":["Varnish Cache"],"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 Enterprise","id":"CVE-2026-40395","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":"A workspace overflow in Varnish Cache during HTTP/2 upgrades allows attackers to cause a daemon panic and denial of service.","url":"https://insights.sbomify.com/CVE-2026-40394/"}