Live threats

All CVEs / Gogs

CVE-2018-15178Gogs

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Aug 8, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gogs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go gogs.io/gogs < 0.12.0 0.12.0 go get gogs.io/gogs@v0.12.0
Go gogs.io/gogs < 0.12.0 0.12.0 go get gogs.io/gogs@v0.12.0

Per OSV / GitHub Advisories (GHSA-cpgw-2wxr-pww3, GO-2022-0822). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gogsgogs< 0.12

Official sources

References

Links published by the sources. Open them with care.