# CVE-2026-39904: Gophish 0.12.1 Denial of Service via Office Document Upload

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-22T20:11:14.670Z
- Modified: 2026-10-08T16:17:14.223Z
- Also known as: GHSA-42jc-v69j-g38f, GO-2026-6212
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- gophish gophish: up to 0.12.1
- github.com/gophish/gophish (Go): up to 0.12.1; all versions

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/ashikmd7/GoPhish-0.12.1/blob/main/Unbounded%20Memory%20Allocation%20in%20Office%20Attachment%20Processing%20Leads%20to%20Server%20DoS/README.md> (exploit, technical-description, web)
- <https://www.vulncheck.com/advisories/gophish-denial-of-service-via-office-document-upload> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39904> (advisory)
- <https://github.com/gophish/gophish> (package)
- <https://github.com/advisories/GHSA-42jc-v69j-g38f> (advisory)

## Sources

- CVE List: [CVE-2026-39904](https://www.cve.org/CVERecord?id=CVE-2026-39904), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-42jc-v69j-g38f](https://github.com/advisories/GHSA-42jc-v69j-g38f), CC-BY-4.0, modified 2026-08-18
- Go Vulnerability Database: [GO-2026-6212](https://pkg.go.dev/vuln/GO-2026-6212), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-39904](https://nvd.nist.gov/vuln/detail/CVE-2026-39904), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-39904 · Whole record: https://cve.day/CVE-2026-39904.json · Rebuilt by cve.day 2026-11-25T22:59:25.409Z
