{"schemaVersion":3,"id":"CVE-2026-39904","aliases":["GHSA-42jc-v69j-g38f","GO-2026-6212"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-06-22T20:11:14.670Z","modified":"2026-10-08T15:22:32.489Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":7.2,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.1,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00436,"percentile":0.36743,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00436},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00436,"percentile":0.36743}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00436,"percentile":0.36743}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_ASHIKMD7_GOPHISH-0.12.1","name":"Gophish 0.12.1","source":"github","url":"https://github.com/ashikmd7/GoPhish-0.12.1/blob/main/Unbounded%20Memory%20Allocation%20in%20Office%20Attachment%20Processing%20Leads%20to%20Server%20DoS/README.md","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"github.com/gophish","product":"gophish","name":"github.com/gophish/gophish","label":"gophish","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/gophish/gophish","purlType":"golang","versions":[{"text":"≤ 0.12.1","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 0.12.1 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gophish","product":"gophish","name":"gophish","label":"gophish","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.12.1","eol":null,"hubHref":"/vendor/gophish/gophish"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"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","label":"github.com/ashikmd7/…","hostname":"github.com","tags":["Technical Description","Exploit","WEB"]},{"url":"https://www.vulncheck.com/advisories/gophish-denial-of-service-via-office-document-upload","label":"www.vulncheck.com/advisories/gophish-denial-of-service-via-office-document-upload","hostname":"www.vulncheck.com","tags":["Third Party Advisory","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39904","label":"nvd.nist.gov/vuln/detail/CVE-2026-39904","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/gophish/gophish","label":"github.com/gophish/gophish","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-42jc-v69j-g38f","label":"github.com/advisories/GHSA-42jc-v69j-g38f","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21761-1","SUSE-SU-2026:23625-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21761-1","SUSE-SU-2026:23625-1"]},"timeline":[{"kind":"published","date":"2026-06-22T20:11:14.670Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T15:22:32.489Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":38,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T11:57:13.509Z","stale":false,"partial":false}}