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

Published Jun 22, 2026
·
Updated

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 Software

1 affected component
Gophish Gophish<=0.12.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade gophish to a version that resolves this vulnerability.

    Fixed in 0.12.1
  2. Compensating control

    Restrict authenticated User role access so they cannot upload email template attachments (Office documents) that are processed by ApplyTemplate() in models/attachment.go.

Event History

Jun 22, 2026
CVE Published
via MITRE·08:11 PM
Data Sourced
via MITRE·08:11 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-39904?

CVE-2026-39904 has a medium severity rating of 6.5.

2

How do I fix CVE-2026-39904?

To mitigate CVE-2026-39904, upgrade to a patched version of Gophish that addresses this denial of service vulnerability.

3

Who is affected by CVE-2026-39904?

Authenticated users with the User role in Gophish versions up to 0.12.1 are affected by CVE-2026-39904.

4

What kind of vulnerability is CVE-2026-39904?

CVE-2026-39904 is a denial of service vulnerability that allows resource exhaustion through crafted Office document uploads.

5

When was CVE-2026-39904 published?

CVE-2026-39904 was published on June 22, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203