Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Gophish /login
-
DeliverySend login requests with rotating X-Forwarded-For/X-Real-IP
-
ExploitBypass per-IP rate limiter
-
ExecutionRun unlimited credential-stuffing attempts
-
ImpactGuess valid admin credentials
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V6 - Authentication IP-independent access control
|
| Exploitation Conditions | Exploitation requires that the Gophish admin login endpoint (/login) be reachable by the attacker (typically an internet-exposed or network-accessible admin interface) and that Gophish be deployed behind a trust model where it honors X-Forwarded-For / X-Real-IP to derive the client IP - which is the default behavior of the vulnerable rate-limit middleware through 0.12.1. No authentication, user interaction, or special feature toggle is needed to bypass the limiter itself. The practical limiting factor is downstream: the bypass only yields compromise if the targeted account uses weak, default, or guessable credentials, since the flaw merely removes brute-force throttling rather than directly bypassing authentication. Instances not exposed to untrusted networks have sharply reduced real-world risk. |
| Impact | This is a genuine but moderate-severity issue, not a top-tier emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N, score 6.9) is internally consistent with the description: a remote, unauthenticated attacker with no user interaction can trivially bypass /login rate limiting by rotating spoofed X-Forwarded-For / X-Real-IP header values (CWE-348, reliance on an untrusted source for the client IP). The direct technical impact is low - VC:L only, no integrity or availability impact - because the flaw itself does not grant access; it removes a brute-force protection control, so real-world damage is contingent on weak or guessable Gophish admin credentials. Publicly available POC/exploit code exists (ostorlab blog + VulnCheck advisory), which raises practical exploitability, but there is no CISA KEV listing and no EPSS score was provided, so there is no evidence of active, widespread exploitation - treat this as enabling opportunistic credential stuffing rather than confirmed in-the-wild attacks. No SSVC decision data was supplied. Net: prioritize for patching on any internet-exposed Gophish instance, but it is a brute-force-facilitation weakness gated by credential strength, not a direct compromise, so it ranks below authentication-bypass or RCE flaws. |
| Exploit ScenarioDerived | An attacker discovers an internet-exposed Gophish admin login and scripts a credential-stuffing run against /login, assigning a unique spoofed X-Forwarded-For value to each HTTP request. Because the rate limiter keys on the attacker-controlled (rewritten) RemoteAddr, the throttle never trips, allowing unlimited password guesses against the admin account. Public exploit code demonstrating this bypass is already available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Credential stuffing and unlimited password guessing against the Gophish phishing-simulation platform through version 0.12.1 are enabled by a login rate-limit bypass: the throttling middleware keys its counter on a client address that is rewritten from the attacker-supplied X-Forwarded-For or X-Real-IP header, so an unauthenticated remote attacker who sends a different forwarded address with every request never trips the limiter. Publicly available exploit code exists (documented in the Ostorlab review and VulnCheck advisory), and the flaw is rated CVSS 4.0 6.9 / assessed CVSS 3.1 6.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N); it is not confirmed actively exploited, so exploitation depends on whether the /login endpoint is network-reachable and whether targeted accounts use weak, default, or guessable credentials. The issue is genuine but moderate in severity rather than a top-tier emergency, and its real-world impact is sharply reduced for instances whose admin interface is not exposed to untrusted networks.
RemediationAI
No vendor-released patch was identified at time of analysis, so remediation centers on compensating controls. First, restrict network exposure of the Gophish admin interface: bind /login to an internal interface, place it behind a VPN or IP allowlist, or block it at the edge - this is the single most effective mitigation because the bypass is only reachable when the endpoint is exposed, though it does reduce administrative convenience and complicates remote administration. Second, harden the proxy layer: configure the front-end reverse proxy to overwrite (not append) X-Forwarded-For and X-Real-IP with the true client address and to drop any client-supplied values, so spoofed headers never reach Gophish; the trade-off is that legacy multi-hop proxy chains may lose accurate client-IP logging unless trusted-proxy lists are maintained. Third, enforce credential hygiene and defense in depth: rotate any default credentials, require long unique admin passwords, enable multi-factor authentication where supported, and apply throttling or fail2ban-style blocking at the reverse proxy keyed on the real TCP source address - noting that if the proxy itself is the only address Gophish sees, per-IP throttling there must be tuned to avoid locking out legitimate users behind shared NAT. Consult the VulnCheck advisory (https://www.vulncheck.com/advisories/gophish-through-0.12.1-login-rate-limit-bypass-via-x-forwarded-for-spoofing) and the Ostorlab write-up (https://blog.ostorlab.co/gophish-0121-manual-review-agentic-deep-scan.html) for exploit details, and monitor the Gophish repository (https://github.com/gophish/gophish) for an upstream fix commit or tagged release before relying on the built-in limiter alone.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Root cause is CWE-348 (Use of Less Trusted Source): the Gophish rate-limiting middleware (middleware/ratelimit/ratelimit.go, lines 132-136) derives the bucket key for the /login route (controllers/route.go line 168) from the request's client IP, which under Gophish's default deployment model is taken from the X-Forwarded-For / X-Real-IP forwarding headers rather than from the authoritative TCP source address. Go's net/http populates RemoteAddr from the actual connection, but reverse-proxy aware frameworks commonly rewrite or consult these headers, and Gophish honors them without validating that the request came from a trusted proxy. Because the header is client-controllable in the general case, an attacker can rotate spoofed values on every attempt so each request maps to a fresh limiter bucket, defeating the throttle entirely while leaving authentication logic untouched. The vulnerability affects the entire Gophish product line as reflected by CPE cpe:2.3:a:gophish:gophish:*:*:*:*:*:*:*:* (wildcard covering all versions through 0.12.1). The flaw merely removes brute-force throttling; it does not bypass authentication by itself, so credential compromise still requires weak, default, or guessable admin passwords downstream.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Remote unauthenticated header spoofing with no interaction gives AV:N/AC:L/PR:N/UI:N; impact is limited to disabling a brute-force control (C:L, no direct I/A impact).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Gophish through 0.12.1 contains a rate limit bypass vulnerability that allows unauthenticated attackers to evade /login throttling by spoofing X-Forwarded-For or X-Real-IP headers. Attackers can send a different forwarded address per request so the limiter keyed on rewritten RemoteAddr never triggers, enabling unlimited password guessing and credential stuffing.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Gophish before 0.11.0 allows the creation of CSV sheets that contain malicious content. Rated high severity (CVSS 7.8),
Gophish <=0.12.1 is vulnerable to Incorrect Access Control. The administrative dashboard exposes each user’s long-lived
Gophish through 0.10.1 does not invalidate the gophish cookie upon logout. Rated high severity (CVSS 7.5), this vulnerab
Memory exhaustion denial of service in Gophish through 0.12.1 allows authenticated low-privilege users to crash the phis
Insecure direct object reference (IDOR) in Gophish through 0.12.1 lets any authenticated, low-privileged user take over
The Reset button on the Account Settings page in Gophish before 0.11.0 allows attackers to cause a denial of service via
Username enumeration in Gophish through 0.12.1 allows unauthenticated remote attackers to distinguish valid administrato
This affects the package github.com/gophish/gophish before 0.12.0. Rated medium severity (CVSS 5.4), this vulnerability
Cross Site Scripting (XSS) vulnerability in Gophish before 0.11.0 via the IMAP Host field on the account settings page.
Cross Site Scripting (XSS) vulnerability in Gophish through 0.10.1 via a crafted landing page or email template. Rated m
Cross Site Scripting (XSS) vulnerability in Gophish before 0.11.0 via the Host field on the send profile form. Rated med
Server-side request forgery in Gophish 0.11.0 through 0.12.1 allows authenticated, low-privileged users to force the ser
EUVD-2026-94402
GHSA-hxwc-4ggw-27w5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB