CVE-2022-25295
MEDIUM 5.4CVSS 3.1Gophish before 0.12.0 vulnerable to Open Redirect
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.
- Published
- 11 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-hvw3-p9px-gpc9GO-2022-0987
- Sources
- NVDJSONOSV GHSA-hvw3-p9px-gpc9JSONOSV GO-2022-0987JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getgophish | gophishcpe:2.3:a:getgophish:gophish:*:*:*:*:*:*:*:* |
< 0.12.0 | 0.12.0 |
| OSV | Go | github.com/gophish/gophish | < 0.12.0 | 0.12.0 |
References
- https://github.com/gophish/gophish/pull/2262 · Patch, Third Party Advisory, WEB, FIX
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25295 · ADVISORY
- https://github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc · WEB, FIX
- https://github.com/gophish/gophish · PACKAGE
- https://github.com/gophish/gophish/releases/tag/v0.12.0 · WEB
- https://github.com/advisories/GHSA-hvw3-p9px-gpc9 · ADVISORY
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 11 Sep 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Sep 2022)