Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-39904 EUVD-2026-38351GHSA-42jc-v69j-g38fGO-2026-6212

Gophish 0.12.1 Denial of Service via Office Document Upload

Published Jun 22, 2026 · Updated Oct 8, 2026 · 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.

Affected products

VendorProductAffectedFixed
gophish gophish ≤ 0.12.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/gophish/gophish <= 0.12.1 — GHSA-42jc-v69j-g38f
Go github.com/gophish/gophish all versions — GO-2026-6212

Advisories 2

References