{"cve":"CVE-2026-39904","nvd":{"published":"2026-06-22T21:16:23.873","modified":"2026-10-08T16:17:14.223","status":"Deferred","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.","cvss_v4":{"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","score":7.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-770"],"references":["https://github.com/ashikmd7/GoPhish-0.12.1/blob/main/Unbounded%20Memory%20Allocation%20in%20Office%20Attachment%20Processing%20Leads%20to%20Server%20DoS/README.md","https://www.vulncheck.com/advisories/gophish-denial-of-service-via-office-document-upload"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:39:28.638635428+00:00"},"epss":{"cve":"CVE-2026-39904","score":0.00436,"percentile":0.37589,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-42jc-v69j-g38f","url":"https://osv.dev/vulnerability/GHSA-42jc-v69j-g38f","summary":"Gophish contains a denial of service vulnerability","modified":"2026-08-18T15:10:30.426436227Z","packages":[{"ecosystem":"Go","name":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","ranges":["<=0.12.1"],"fixed":[]}]},{"id":"GO-2026-6212","url":"https://osv.dev/vulnerability/GO-2026-6212","summary":"Gophish contains a denial of service vulnerability in github.com/gophish/gophish","modified":"2026-08-18T15:00:17.624905319Z","packages":[{"ecosystem":"Go","name":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}