CVE-2022-25295Getgophish Gophish
Medium 5.4 No auth needed
Follow: this CVE · Getgophish · Getgophish Gophish We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- No
- Published
- Sep 11, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
This affects the package github.com/gophish/gophish before 0.12.0. The Open Redirect vulnerability exists in the next query parameter. The application uses url.Parse(r.FormValue("next")) to extract path and eventually redirect user to a relative URL, but if next parameter starts with multiple backslashes like \\\\\\example.com, browser will redirect user to http://example.com.
What to do
- Apply the vendor's security update for Gophish.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gophish/gophish |
< 0.12.0 |
0.12.0 |
go get github.com/gophish/gophish@v0.12.0 |
| Go | github.com/gophish/gophish |
< 0.12.0 |
0.12.0 |
go get github.com/gophish/gophish@v0.12.0 |
Per OSV / GitHub Advisories (GHSA-hvw3-p9px-gpc9, GO-2022-0987). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| getgophish | gophish | < 0.12.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- security.snyk.io Exploit Third Party Advisory