CVE-2026-39904

Gophish 0.12.1 Denial of Service via Office Document Upload

Published Jun 22, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-42jc-v69j-g38f Gophish contains a denial of service vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:getgophish:gophish:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Getgophish
Getgophish gophish
Vendors & Products Getgophish
Getgophish gophish
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Gophish 0.12.1 Denial of Service via Office Document Upload
Weaknesses CWE-770
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:22 PM
Reserved
Apr 7, 2026, 8:57 PM
Status
Deferred
Published
Jun 22, 2026, 9:16 PM
Modified
Oct 8, 2026, 4:17 PM