Gophish 0.12.1 Denial of Service via Office Document Upload
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-770.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gophish | gophish | up to 0.12.1 | — | No fix listed | CNA |
| — | github.com/gophish/gophish (Go) | up to 0.12.1 | — | No fix listed | GHSA-42jc-v69j-g38f |
- gophish Vendorgophish Affected up to 0.12.1 Fixed in — No fix listed CNA
- github.com/gophish/gophish (Go) Vendor— Affected up to 0.12.1 Fixed in — No fix listed GHSA-42jc-v69j-g38f
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-39904
- 2026-10-03 Alias added: GHSA-42jc-v69j-g38f
References
Exploit 1
More gophish vulnerabilities
- TI-2026-56734 Gophish Account Lockout and Forced Password Change Bypassable via API Key CVSS 4.0HIGH 8.6
- TI-2026-69198 Gophish Login Rate Limit Bypass via X-Forwarded-For Spoofing CVSS 4.0MEDIUM 6.9
- TI-2026-69197 Gophish API lets users take over other users' objects CVSS 4.0HIGH 7.1
- TI-2026-69190 Username enumeration via login timing discrepancy in Gophish CVSS 4.0MEDIUM 6.3
- TI-2026-69200 Gophish SSRF via POST /api/import/site CVSS 4.0MEDIUM 5.3
- TI-2026-69199 Cross-site scripting in Gophish via SMTP server error messages CVSS 4.0LOW 2.3
Sources
- CVE-2026-39904 · CVE Program
- CVE-2026-39904 · NVD
- FIRST EPSS
- GHSA-42jc-v69j-g38f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences