{"id":"CVE-2026-39904","aliases":["CVE-2026-39904","GHSA-42jc-v69j-g38f","GO-2026-6212"],"related":[],"kind":"vulnerability","state":"published","title":"Gophish 0.12.1 Denial of Service via Office Document Upload","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Gophish contains a denial of service vulnerability in github.com/gophish/gophish","format":"markdown","source":"go"}],"published":"2026-06-22T20:11:14.670Z","modified":"2026-10-08T16:17:14.223Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.12.1","status":"affected"}],"vendor":"gophish","product":"gophish","repo":"https://github.com/gophish/gophish","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.12.1"}],"ecosystem":"Go","package":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","source":"go"}],"references":[{"url":"https://github.com/ashikmd7/GoPhish-0.12.1/blob/main/Unbounded%20Memory%20Allocation%20in%20Office%20Attachment%20Processing%20Leads%20to%20Server%20DoS/README.md","tags":["exploit","technical-description","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/gophish-denial-of-service-via-office-document-upload","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39904","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gophish/gophish","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-42jc-v69j-g38f","tags":["advisory"],"sources":["go"]}],"credits":["Ashik Mohamed (ashikmd7)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-23T14:09:33.438Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39904","url":"https://www.cve.org/CVERecord?id=CVE-2026-39904","licence":"CVE Terms of Use","modified":"2026-10-08T15:22:32.489Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-42jc-v69j-g38f","url":"https://github.com/advisories/GHSA-42jc-v69j-g38f","licence":"CC-BY-4.0","modified":"2026-08-18T15:10:30.426Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6212","url":"https://pkg.go.dev/vuln/GO-2026-6212","licence":"CC-BY-4.0","modified":"2026-08-18T15:00:17.624Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39904","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39904","licence":"Public domain","modified":"2026-10-08T16:17:14.223Z"}],"updatedAt":"2026-11-25T22:59:25.409Z","epss":{"score":0.00249,"percentile":0.17373,"date":"2026-12-01T12:00:22.000Z"}}