{"answers":{"affected":"3 open source packages ship an affected version, including github.com/gophish/gophish.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39904 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-39904 is a high-severity denial of service vulnerability in gophish, published on 22 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-39904 and fix it if it is affected.\n\nWhat it is: CVE-2026-39904 is a high-severity denial of service vulnerability in gophish, published on 22 Jun 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-39904 exists.\n\nAffected packages and fixed versions:\n- github.com/gophish/gophish (Go): affected all versions; no fix listed\n- github.com/gophish/gophish (Go): affected all versions up to 0.12.1; no fix listed\n- github.com/gophish/gophish (Go): affected all versions up to 0.12.1; no fix listed\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-39904/ (Markdown: https://insights.sbomify.com/CVE-2026-39904/index.md)","id":"CVE-2026-39904","markdown":"https://insights.sbomify.com/CVE-2026-39904/index.md","name":"CVE-2026-39904","record":{"aliases":["GHSA-42jc-v69j-g38f","GO-2026-6212"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Phishing simulation platform","requires_auth":"low_privilege","summary":"Authenticated users can cause denial of service by uploading crafted Office documents that trigger memory exhaustion via zip bomb processing.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Gophish through 0.12.1 contains a denial of service vulnerability that allows authenticated users with the User role to exhaust server memory by uploading a crafted Office document as an email template attachment. The ApplyTemplate() function in models/attachment.go processes Office documents as ZIP archives and calls ioutil.ReadAll() on each contained file entry without enforcing size restrictions on uncompressed content, allowing a zip bomb payload to expand to several gigabytes in memory and cause the process to be terminated by the operating system.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Gophish 0.12.1 Denial of Service via Office Document Upload","id":"CVE-2026-39904","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Unisys WebPerfect Image Suite 3.0 NTLMv2 Hash Leakage via .NET Remoting","id":"CVE-2026-39906"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","source":"GO-2026-6212"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.12.1"],"package":"github.com/gophish/gophish","purl":null,"source":"GHSA-42jc-v69j-g38f"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.12.1"],"package":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","source":"GHSA-42jc-v69j-g38f"}],"prev":{"headline":"Simple Machines Forum Authorization Bypass via AttachmentApprove.php","id":"CVE-2026-39903"},"products":["gophish"],"published":"2026-06-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-08","vendors":["gophish"]},"summary":"Authenticated users can cause denial of service by uploading crafted Office documents that trigger memory exhaustion via zip bomb processing.","url":"https://insights.sbomify.com/CVE-2026-39904/"}