CVE-2022-25295 json
Open Redirect
published 2022-09-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-hvw3-p9px-gpc9 , GO-2022-0987 , EUVD-2022-6843
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 53%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/gophish/gophish 0.12.0
- n/a github.com/gophish/gophish 0.12.0
- github.com/gophish/gophish@2a452bd commit
- github.com/gophish/gophish#2262 pull request
- github.com/gophish/gophish/releases/tag/v0.12.0 release
Exploit prediction
0.70% chance of exploitation in the next 30 days, higher than 53% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- security.snyk.io https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C |
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/gophish/gophish | <0.12.0 |
0.12.0 |
Affected products
- n/a github.com/gophish/gophish
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/gophish/gophish/pull/2262
web, patch, third-party-advisory
-
github.com
/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc
web, patch
-
security.snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-25295
advisory
-
github.com
/gophish/gophish
package
-
github.com
/gophish/gophish/releases/tag/v0.12.0
web
-
github.com
/advisories/GHSA-hvw3-p9px-gpc9
advisory
Sources
- CVE List CVE-2022-25295
- GitHub Advisory GHSA-hvw3-p9px-gpc9
- NVD CVE-2022-25295
- OSV GO-2022-0987
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.