7.1high
Gophish 0.12.1 Denial of Service via Office Document Upload
- Severity
- 7.1high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-42jc-v69j-g38fGO-2026-6212
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gophish gophish | up to 0.12.1 | CVE List |
| github.com/gophish/gophish (Go) | up to 0.12.1, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| VulnCheck | 7.1high CVSS:4.0 | 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 | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | high CVSS:4.0 | 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
Go Vulnerability Database
Gophish contains a denial of service vulnerability in github.com/gophish/gophish
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39904 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-42jc-v69j-g38f changed 2026-08-18 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6212 changed 2026-08-18 | CC-BY-4.0 |
| NVD | CVE-2026-39904 changed 2026-10-08 | Public domain |