Skip to main content

Gophish CVE-2026-39904

| EUVDEUVD-2026-38351 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-06-22 VulnCheck GHSA-42jc-v69j-g38f
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain User-role Gophish credentials
  2. Delivery
    Craft Office document containing zip-bomb entry
  3. Exploit
    Upload as email template attachment
  4. Execution
    ApplyTemplate() ioutil.ReadAll() expands payload in memory
  5. Persist
    Process exceeds RAM and is OOM-killed
  6. Impact
    Gophish service outage disrupts active campaigns

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a valid Gophish account holding at least the User role (PR:L) and network reachability to the Gophish web UI; the attacker must invoke the email-template attachment upload feature with a crafted Office document (DOCX/XLSX/PPTX) that contains a zip-bomb payload exercising ApplyTemplate() in models/attachment.go. No user interaction by another party, no admin privileges, and no non-default configuration are needed - the vulnerable parsing path is enabled by default. The principal limit on exploitation is the authentication boundary: instances that tightly control User-role provisioning, or that do not expose Gophish to untrusted users at all, face significantly lower realistic risk.

Impact

CVSS 4.0 of 7.1 (AV:N/AC:L/PR:L/UI:N/VA:H) accurately reflects a network-reachable, low-complexity, single-impact (availability only) flaw requiring an authenticated User-role account; confidentiality and integrity are unaffected. Publicly available exploit code raises real-world risk above the raw score because weaponization is trivial, but absence from CISA KEV and the requirement for valid credentials limit mass exploitation. EPSS was not provided in the input, so probabilistic exploitation likelihood cannot be cited. Practical priority is moderate-to-high for organizations running shared or self-service Gophish instances, and lower for isolated single-operator deployments where the User role is effectively trusted.

Exploit ScenarioDerived

An attacker with a legitimate low-privilege Gophish User account - for example, a red-team customer on a shared phishing-as-a-service tenant or a disgruntled internal user of a corporate awareness platform - generates a small DOCX whose internal ZIP structure decompresses to several gigabytes. They upload it as an email template attachment, triggering ApplyTemplate() to call ioutil.ReadAll() on the bomb, the process balloons past available RAM, and the OS OOM-killer terminates Gophish, knocking out every concurrent campaign on the instance. The publicly available POC at github.com/ashikmd7/GoPhish-0.12.1 makes this attack reproducible with no specialized skill.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 22, 2026

Memory exhaustion denial of service in Gophish through 0.12.1 allows authenticated low-privilege users to crash the phishing-campaign server by uploading a zip-bomb Office document as an email template attachment. Publicly available exploit code exists, demonstrating that any account with the User role can trigger an OOM kill of the Gophish process and disrupt ongoing campaigns. No CISA KEV listing is present, but the trivial complexity and available POC make opportunistic abuse realistic against multi-tenant or shared Gophish deployments.

RemediationAI

No vendor-released patch identified at time of analysis; upstream fix version is not confirmed in the supplied data, so monitor the gophish/gophish GitHub repository and the VulnCheck advisory (https://www.vulncheck.com/advisories/gophish-denial-of-service-via-office-document-upload) for an updated release beyond 0.12.1. Compensating controls include restricting Gophish account creation to fully trusted operators and removing the User role from any shared or self-service tenants (trade-off: eliminates delegated campaign authoring), disabling or blocking Office-document attachments in templates and substituting plain HTML or PDF content (trade-off: reduces phishing-simulation realism), placing the Gophish process behind a memory cgroup or systemd MemoryMax limit so an OOM only kills the container rather than the host (trade-off: campaign downtime still occurs), and front-ending uploads with a reverse proxy or pre-validation step that rejects ZIP entries whose declared uncompressed size exceeds a sane threshold.

Affected VersionsENISA

gophish 0 ≤0.12.1

Affected Packages

go github.com/gophish/gophish no fix
euvd gophish no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gophish is an open-source phishing simulation framework written in Go, commonly used by red teams and security awareness programs to deliver templated emails with attachments. The flaw lives in ApplyTemplate() within models/attachment.go, where Office documents (DOCX, XLSX, PPTX) are unpacked as ZIP archives and each contained file is read into memory via ioutil.ReadAll() with no cap on the uncompressed size. This is a textbook CWE-770 (Allocation of Resources Without Limits or Throttling) zip-bomb pattern: a tiny crafted archive can decompress to multiple gigabytes, exceeding host memory and causing the Linux OOM killer to terminate the gophish process.

Know when Gophish gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 6.5 MEDIUM

Network-reachable web upload (AV:N), trivial crafted file (AC:L), requires authenticated User role (PR:L), no interaction, availability-only impact via OOM (A:H).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Gophish versions through 0.12.1 are vulnerable to denial-of-service attacks where authenticated basic users can crash the campaign server by uploading malicious attachments, disrupting ongoing phishing operations. Publicly available exploit code exists, no patch is available from the vendor, and any user account with basic upload permissions poses an active threat.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Restrict uploads to administrator accounts; enforce file-size limits (≤5 MB); block Office document file types; implement rate limiting on uploads; configure memory limits and monitoring on Gophish processes to trigger alert/restart on OOM condition.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
popular open-source phishing-simulation framework used by red teams and awareness programs
Threat Intel
2
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment NEWS GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2020-24707 HIGH POC
7.8 Oct 28

Gophish before 0.11.0 allows the creation of CSV sheets that contain malicious content. Rated high severity (CVSS 7.8),

CVE-2025-70963 HIGH POC
7.6 Feb 06

Gophish <=0.12.1 is vulnerable to Incorrect Access Control. The administrative dashboard exposes each user’s long-lived

CVE-2020-24713 HIGH POC
7.5 Oct 28

Gophish through 0.10.1 does not invalidate the gophish cookie upon logout. Rated high severity (CVSS 7.5), this vulnerab

CVE-2026-107270 HIGH POC
7.1 Oct 07

Insecure direct object reference (IDOR) in Gophish through 0.12.1 lets any authenticated, low-privileged user take over

CVE-2026-107271 MEDIUM POC
6.9 Oct 07

Credential stuffing and unlimited password guessing against the Gophish phishing-simulation platform through version 0.1

CVE-2020-24711 MEDIUM POC
6.5 Oct 28

The Reset button on the Account Settings page in Gophish before 0.11.0 allows attackers to cause a denial of service via

CVE-2026-107269 MEDIUM POC
6.3 Oct 07

Username enumeration in Gophish through 0.12.1 allows unauthenticated remote attackers to distinguish valid administrato

CVE-2022-25295 MEDIUM POC
5.4 Sep 11

This affects the package github.com/gophish/gophish before 0.12.0. Rated medium severity (CVSS 5.4), this vulnerability

CVE-2020-24712 MEDIUM POC
5.4 Oct 28

Cross Site Scripting (XSS) vulnerability in Gophish before 0.11.0 via the IMAP Host field on the account settings page.

CVE-2020-24709 MEDIUM POC
5.4 Oct 28

Cross Site Scripting (XSS) vulnerability in Gophish through 0.10.1 via a crafted landing page or email template. Rated m

CVE-2020-24708 MEDIUM POC
5.4 Oct 28

Cross Site Scripting (XSS) vulnerability in Gophish before 0.11.0 via the Host field on the send profile form. Rated med

CVE-2026-107273 MEDIUM POC
5.3 Oct 07

Server-side request forgery in Gophish 0.11.0 through 0.12.1 allows authenticated, low-privileged users to force the ser

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy