CVE-2018-15178 json
Open Redirect
published 2018-08-08 8 y ago modified 2026-06-17 4 mo ago also GHSA-cpgw-2wxr-pww3 , GO-2022-0822 , EUVD-2021-1312
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
Open redirect vulnerability in Gogs before 0.12 allows remote attackers to redirect users to arbitrary websites and conduct phishing attacks via an initial /\ substring in the user/login redirect_to parameter, related to the function isValidRedirect in routes/user/auth.go.
Patch / fix
- go gogs.io/gogs 0.12.0
- gogs gogs 0.12
- github.com/gogs/gogs@1f247cf commit
- github.com/gogs/gogs#5365 pull request
Exploit prediction
1.32% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gogs/gogs/issues/5364 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.12.0 |
0.12.0 |
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/gogs/gogs/pull/5365
web, third-party-advisory
-
github.com
/gogs/gogs/commit/1f247cf8139cb483276cd8dd06385a800ce9d4b2
web
-
github.com
/gogs/gogs/issues/5364
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-15178
advisory
-
github.com
/advisories/GHSA-cpgw-2wxr-pww3
advisory
Sources
- CVE List CVE-2018-15178
- GitHub Advisory GHSA-cpgw-2wxr-pww3
- NVD CVE-2018-15178
- OSV GO-2022-0822
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.