CVE-2018-15178
MEDIUM 6.1CVSS 3.0Open Redirect
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.
- Published
- 8 Aug 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-cpgw-2wxr-pww3GO-2022-0822
- Sources
- NVDJSONOSV GHSA-cpgw-2wxr-pww3JSONOSV GO-2022-0822JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.12 | 0.12 |
| OSV | Go | gogs.io/gogs | < 0.12.0 | 0.12.0 |
References
- https://github.com/gogs/gogs/issues/5364 · Exploit, Third Party Advisory, WEB
- https://github.com/gogs/gogs/pull/5365 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-15178 · ADVISORY
- https://github.com/gogs/gogs/commit/1f247cf8139cb483276cd8dd06385a800ce9d4b2 · WEB
- https://github.com/advisories/GHSA-cpgw-2wxr-pww3 · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 8 Aug 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Jun 2021)