Live threats

All CVEs / Gogits

CVE-2014-8682Gogits Gogs

High 7.5 No auth neededHigh EPSS

Priority
63
CVSS 2.0
7.5
EPSS
32.6%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Nov 21, 2014
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P

What happens

Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow remote attackers to execute arbitrary SQL commands via the q parameter to (1) api/v1/repos/search, which is not properly handled in models/repo.go, or (2) api/v1/users/search, which is not properly handled in models/user.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.3.1 < 0.5.8 0.5.8 go get gogs.io/gogs@v0.5.8
Go gogs.io/gogs ≥ 0.3.1 < 0.5.8 0.5.8 go get gogs.io/gogs@v0.5.8

Per OSV / GitHub Advisories (GHSA-g6xv-8q23-w2q3, GO-2022-0831). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gogitsgogs≤ 0.5.5
gogitsgogs0.3.1-9
gogitsgogs0.4.1
gogitsgogs0.4.2
gogitsgogs0.5.0
gogitsgogs0.5.2

Official sources

References

Links published by the sources. Open them with care.