CVE-2026-39904
JSON

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 packageVersionsReported by
gophish gophishup to 0.12.1CVE List
github.com/gophish/gophish (Go)up to 0.12.1, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

VulnCheck7.1high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub6.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS: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

CWE-770

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

SourceRecordLicence
CVE ListCVE-2026-39904 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-42jc-v69j-g38f changed 2026-08-18CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6212 changed 2026-08-18CC-BY-4.0
NVDCVE-2026-39904 changed 2026-10-08Public domain