Advisory

GHSA-42jc-v69j-g38f

Also known as: CVE-2026-39904, GO-2026-6212

Summary

Gophish contains a denial of service vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-06-22 21:31 UTC
Modified
2026-08-18 15:10 UTC

Affected packages and fixes

github.com/gophish/gophish

Go · All systems

Affected

  • introduced 0, last affected 0.12.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences